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
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with
11 additions and
11 deletions
-
src/Avalonia.Base/Threading/DispatcherOperation.cs
-
src/Avalonia.Controls.DataGrid/DataGridColumn.cs
-
src/Avalonia.Controls.DataGrid/IndexToValueTable.cs
-
src/Avalonia.Controls/Automation/Peers/AutomationPeer.cs
-
src/Avalonia.Controls/Platform/DefaultMenuInteractionHandler.cs
-
src/Avalonia.Controls/Primitives/Popup.cs
-
src/Avalonia.Controls/VirtualizingPanel.cs
-
src/Markup/Avalonia.Markup.Xaml.Loader/CompilerExtensions/Transformers/AvaloniaXamlIlSelectorTransformer.cs
-
src/Markup/Avalonia.Markup/Data/RelativeSource.cs
|
|
|
@ -117,7 +117,7 @@ public class DispatcherOperation |
|
|
|
/// </summary>
|
|
|
|
/// <returns>
|
|
|
|
/// 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>
|
|
|
|
public void Wait() => Wait(TimeSpan.FromMilliseconds(-1)); |
|
|
|
|
|
|
|
|
|
|
|
@ -614,7 +614,7 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
|
|
|
|
/// <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>
|
|
|
|
/// <param name="item">The item associated with a cell.</param>
|
|
|
|
/// <param name="binding">The binding to get the value of.</param>
|
|
|
|
|
|
|
|
@ -140,11 +140,11 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
|
|
|
|
/// <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>
|
|
|
|
/// <param name="index">index to search for</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) |
|
|
|
{ |
|
|
|
int lowerRangeIndex = this.FindRangeIndex(index); |
|
|
|
|
|
|
|
@ -182,7 +182,7 @@ namespace Avalonia.Automation.Peers |
|
|
|
public event EventHandler<AutomationPropertyChangedEventArgs>? PropertyChanged; |
|
|
|
|
|
|
|
/// <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>
|
|
|
|
protected void RaiseChildrenChangedEvent() => ChildrenChanged?.Invoke(this, EventArgs.Empty); |
|
|
|
|
|
|
|
|
|
|
|
@ -520,7 +520,7 @@ namespace Avalonia.Controls.Platform |
|
|
|
} |
|
|
|
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
|
|
|
|
// new menu.
|
|
|
|
if (item.IsSubMenuOpen && |
|
|
|
|
|
|
|
@ -258,7 +258,7 @@ namespace Avalonia.Controls.Primitives |
|
|
|
} |
|
|
|
|
|
|
|
/// <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"/>.
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
@ -289,7 +289,7 @@ namespace Avalonia.Controls.Primitives |
|
|
|
/// through to the parent window.
|
|
|
|
/// </summary>
|
|
|
|
/// <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
|
|
|
|
/// 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.
|
|
|
|
|
|
|
|
@ -77,7 +77,7 @@ namespace Avalonia.Controls |
|
|
|
/// item is realized; otherwise, null.
|
|
|
|
/// </returns>
|
|
|
|
/// <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
|
|
|
|
/// currently falls outside the realized viewport.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
@ -36,7 +36,7 @@ namespace Avalonia.Markup.Xaml.XamlIl.CompilerExtensions.Transformers |
|
|
|
return node; |
|
|
|
|
|
|
|
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); |
|
|
|
|
|
|
|
if (pn.Values[0] is XamlIlSelectorNode) |
|
|
|
|
|
|
|
@ -45,7 +45,7 @@ namespace Avalonia.Data |
|
|
|
} |
|
|
|
|
|
|
|
/// <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>
|
|
|
|
public class RelativeSource |
|
|
|
{ |
|
|
|
|