Browse Source

chore: remove repetitive words (#15116)

Signed-off-by: crazeteam <lilujing@outlook.com>
Co-authored-by: Max Katz <maxkatz6@outlook.com>
pull/15134/head
crazeteam 3 years ago
committed by GitHub
parent
commit
0b72cdb512
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Avalonia.Base/Threading/DispatcherOperation.cs
  2. 2
      src/Avalonia.Controls.DataGrid/DataGridColumn.cs
  3. 4
      src/Avalonia.Controls.DataGrid/IndexToValueTable.cs
  4. 2
      src/Avalonia.Controls/Automation/Peers/AutomationPeer.cs
  5. 2
      src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs
  6. 4
      src/Avalonia.Controls/Primitives/Popup.cs
  7. 2
      src/Avalonia.Controls/VirtualizingPanel.cs
  8. 2
      src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/Transformers/AvaloniaXamlIlSelectorTransformer.cs
  9. 2
      src/Markup/Avalonia.Markup/Data/RelativeSource.cs

2
src/Avalonia.Base/Threading/DispatcherOperation.cs

@ -117,7 +117,7 @@ public class DispatcherOperation
/// </summary> /// </summary>
/// <returns> /// <returns>
/// The status of the operation. To obtain the return value /// The status of the operation. To obtain the return value
/// of the invoked delegate, use the the Result property. /// of the invoked delegate, use the Result property.
/// </returns> /// </returns>
public void Wait() => Wait(TimeSpan.FromMilliseconds(-1)); public void Wait() => Wait(TimeSpan.FromMilliseconds(-1));

2
src/Avalonia.Controls.DataGrid/DataGridColumn.cs

@ -614,7 +614,7 @@ namespace Avalonia.Controls
} }
/// <summary> /// <summary>
/// Gets the value of a cell according to the the specified binding. /// Gets the value of a cell according to the specified binding.
/// </summary> /// </summary>
/// <param name="item">The item associated with a cell.</param> /// <param name="item">The item associated with a cell.</param>
/// <param name="binding">The binding to get the value of.</param> /// <param name="binding">The binding to get the value of.</param>

4
src/Avalonia.Controls.DataGrid/IndexToValueTable.cs

@ -140,11 +140,11 @@ namespace Avalonia.Controls
} }
/// <summary> /// <summary>
/// Returns true if the given index is contained in the table with the the given value /// Returns true if the given index is contained in the table with the given value
/// </summary> /// </summary>
/// <param name="index">index to search for</param> /// <param name="index">index to search for</param>
/// <param name="value">value expected</param> /// <param name="value">value expected</param>
/// <returns>true if the given index is contained in the table with the the given value</returns> /// <returns>true if the given index is contained in the table with the given value</returns>
public bool ContainsIndexAndValue(int index, T value) public bool ContainsIndexAndValue(int index, T value)
{ {
int lowerRangeIndex = this.FindRangeIndex(index); int lowerRangeIndex = this.FindRangeIndex(index);

2
src/Avalonia.Controls/Automation/Peers/AutomationPeer.cs

@ -182,7 +182,7 @@ namespace Avalonia.Automation.Peers
public event EventHandler<AutomationPropertyChangedEventArgs>? PropertyChanged; public event EventHandler<AutomationPropertyChangedEventArgs>? PropertyChanged;
/// <summary> /// <summary>
/// Raises an event to notify the automation client the the children of the peer have changed. /// Raises an event to notify the automation client the children of the peer have changed.
/// </summary> /// </summary>
protected void RaiseChildrenChangedEvent() => ChildrenChanged?.Invoke(this, EventArgs.Empty); protected void RaiseChildrenChangedEvent() => ChildrenChanged?.Invoke(this, EventArgs.Empty);

2
src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs

@ -520,7 +520,7 @@ namespace Avalonia.Controls.Platform
} }
else if (item?.Parent?.MoveSelection(direction.Value, true) == true) else if (item?.Parent?.MoveSelection(direction.Value, true) == true)
{ {
// If the the parent is an IMenu which successfully moved its selection, // If the parent is an IMenu which successfully moved its selection,
// and the current menu is open then close the current menu and open the // and the current menu is open then close the current menu and open the
// new menu. // new menu.
if (item.IsSubMenuOpen && if (item.IsSubMenuOpen &&

4
src/Avalonia.Controls/Primitives/Popup.cs

@ -258,7 +258,7 @@ namespace Avalonia.Controls.Primitives
} }
/// <summary> /// <summary>
/// Gets or sets the the anchor rectangle within the parent that the popup will be placed /// Gets or sets the anchor rectangle within the parent that the popup will be placed
/// relative to when <see cref="Placement"/> is <see cref="PlacementMode.AnchorAndGravity"/>. /// relative to when <see cref="Placement"/> is <see cref="PlacementMode.AnchorAndGravity"/>.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
@ -289,7 +289,7 @@ namespace Avalonia.Controls.Primitives
/// through to the parent window. /// through to the parent window.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// When <see cref="IsLightDismissEnabled"/> is set to true, clicks outside the the popup /// When <see cref="IsLightDismissEnabled"/> is set to true, clicks outside the popup
/// cause the popup to close. When <see cref="OverlayDismissEventPassThrough"/> is set to /// cause the popup to close. When <see cref="OverlayDismissEventPassThrough"/> is set to
/// false, these clicks will be handled by the popup and not be registered by the parent /// false, these clicks will be handled by the popup and not be registered by the parent
/// window. When set to true, the events will be passed through to the parent window. /// window. When set to true, the events will be passed through to the parent window.

2
src/Avalonia.Controls/VirtualizingPanel.cs

@ -77,7 +77,7 @@ namespace Avalonia.Controls
/// item is realized; otherwise, null. /// item is realized; otherwise, null.
/// </returns> /// </returns>
/// <remarks> /// <remarks>
/// Note for implementors: if the item at the the specified index is an ItemIsOwnContainer /// Note for implementors: if the item at the specified index is an ItemIsOwnContainer
/// item that has previously been realized, then the item should be returned even if it /// item that has previously been realized, then the item should be returned even if it
/// currently falls outside the realized viewport. /// currently falls outside the realized viewport.
/// </remarks> /// </remarks>

2
src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/Transformers/AvaloniaXamlIlSelectorTransformer.cs

@ -36,7 +36,7 @@ namespace Avalonia.Markup.Xaml.XamlIl.CompilerExtensions.Transformers
return node; return node;
if (pn.Values.Count != 1) if (pn.Values.Count != 1)
throw new XamlSelectorsTransformException("Selector property should should have exactly one value", throw new XamlSelectorsTransformException("Selector property should have exactly one value",
node); node);
if (pn.Values[0] is XamlIlSelectorNode) if (pn.Values[0] is XamlIlSelectorNode)

2
src/Markup/Avalonia.Markup/Data/RelativeSource.cs

@ -45,7 +45,7 @@ namespace Avalonia.Data
} }
/// <summary> /// <summary>
/// Describes the the location of a binding source, relative to the binding target. /// Describes the location of a binding source, relative to the binding target.
/// </summary> /// </summary>
public class RelativeSource public class RelativeSource
{ {

Loading…
Cancel
Save