Sfoglia il codice sorgente

Applies spell checking on mostly comments, but also non public members and arguments

Miha Markič 4 anni fa
parent
commit
97c33f432a
52 ha cambiato i file con 109 aggiunte e 109 eliminazioni
  1. 1 1
      src/Avalonia.Base/AvaloniaObject.cs
  2. 2 2
      src/Avalonia.Base/AvaloniaProperty.cs
  3. 2 2
      src/Avalonia.Base/AvaloniaPropertyChangedEventArgs.cs
  4. 1 1
      src/Avalonia.Base/Collections/Pooled/PooledList.cs
  5. 1 1
      src/Avalonia.Base/Data/Core/Plugins/IDataValidationPlugin.cs
  6. 3 3
      src/Avalonia.Base/DirectPropertyBase.cs
  7. 1 1
      src/Avalonia.Base/DirectPropertyMetadata`1.cs
  8. 4 4
      src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs
  9. 1 1
      src/Avalonia.Controls.DataGrid/DataGrid.cs
  10. 1 1
      src/Avalonia.Controls.DataGrid/DataGridCell.cs
  11. 1 1
      src/Avalonia.Controls.DataGrid/DataGridCellCoordinates.cs
  12. 1 1
      src/Avalonia.Controls.DataGrid/DataGridClipboard.cs
  13. 1 1
      src/Avalonia.Controls.DataGrid/DataGridColumn.cs
  14. 4 4
      src/Avalonia.Controls.DataGrid/DataGridDisplayData.cs
  15. 3 3
      src/Avalonia.Controls.DataGrid/DataGridRow.cs
  16. 9 9
      src/Avalonia.Controls.DataGrid/DataGridRows.cs
  17. 1 1
      src/Avalonia.Controls.DataGrid/Primitives/DataGridColumnHeadersPresenter.cs
  18. 1 1
      src/Avalonia.Controls/AppBuilderBase.cs
  19. 5 5
      src/Avalonia.Controls/Converters/MarginMultiplierConverter.cs
  20. 2 2
      src/Avalonia.Controls/Converters/MenuScrollingVisibilityConverter.cs
  21. 1 1
      src/Avalonia.Controls/DateTimePickers/DatePicker.cs
  22. 6 6
      src/Avalonia.Controls/DateTimePickers/DateTimePickerPanel.cs
  23. 4 4
      src/Avalonia.Controls/DefinitionBase.cs
  24. 1 1
      src/Avalonia.Controls/Flyouts/FlyoutBase.cs
  25. 9 9
      src/Avalonia.Controls/Grid.cs
  26. 1 1
      src/Avalonia.Controls/ListBox.cs
  27. 1 1
      src/Avalonia.Controls/NativeMenuItemSeparator.cs
  28. 1 1
      src/Avalonia.Controls/Platform/ExtendClientAreaChromeHints.cs
  29. 1 1
      src/Avalonia.Controls/Primitives/PopupPositioning/ManagedPopupPositioner.cs
  30. 1 1
      src/Avalonia.Controls/Primitives/RangeBase.cs
  31. 1 1
      src/Avalonia.Controls/Primitives/SelectingItemsControl.cs
  32. 1 1
      src/Avalonia.Controls/Repeater/IElementFactory.cs
  33. 2 2
      src/Avalonia.Controls/Repeater/ItemsRepeater.cs
  34. 1 1
      src/Avalonia.Controls/Repeater/ViewManager.cs
  35. 1 1
      src/Avalonia.Controls/Repeater/ViewportManager.cs
  36. 1 1
      src/Avalonia.Controls/ScrollViewer.cs
  37. 1 1
      src/Avalonia.Controls/Selection/SelectionModel.cs
  38. 4 4
      src/Avalonia.Controls/TickBar.cs
  39. 1 1
      src/Avalonia.Controls/TopLevel.cs
  40. 1 1
      src/Avalonia.Controls/WindowBase.cs
  41. 1 1
      src/Avalonia.Input/Cursor.cs
  42. 1 1
      src/Avalonia.Input/GestureRecognizers/ScrollGestureRecognizer.cs
  43. 1 1
      src/Avalonia.Input/ICommandSource.cs
  44. 2 2
      src/Avalonia.Input/TextInput/ITextInputMethodClient.cs
  45. 1 1
      src/Avalonia.Interactivity/Interactive.cs
  46. 1 1
      src/Avalonia.Layout/ElementManager.cs
  47. 2 2
      src/Avalonia.Layout/FlowLayoutAlgorithm.cs
  48. 2 2
      src/Avalonia.Native/AvaloniaNativeMenuExporter.cs
  49. 4 4
      src/Avalonia.Native/IAvnMenu.cs
  50. 3 3
      src/Avalonia.Native/IAvnMenuItem.cs
  51. 1 1
      src/Avalonia.Visuals/Media/TextFormatting/Unicode/LineBreakEnumerator.cs
  52. 5 5
      src/Avalonia.Visuals/Media/Transformation/InterpolationUtilities.cs

+ 1 - 1
src/Avalonia.Base/AvaloniaObject.cs

@@ -861,7 +861,7 @@ namespace Avalonia
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Logs a mesage if the notification represents a binding error.
+        /// Logs a message if the notification represents a binding error.
         /// </summary>
         /// </summary>
         /// <param name="property">The property being bound.</param>
         /// <param name="property">The property being bound.</param>
         /// <param name="value">The binding notification.</param>
         /// <param name="value">The binding notification.</param>

+ 2 - 2
src/Avalonia.Base/AvaloniaProperty.cs

@@ -465,9 +465,9 @@ namespace Avalonia
         /// Uses the visitor pattern to resolve an untyped property to a typed property.
         /// Uses the visitor pattern to resolve an untyped property to a typed property.
         /// </summary>
         /// </summary>
         /// <typeparam name="TData">The type of user data passed.</typeparam>
         /// <typeparam name="TData">The type of user data passed.</typeparam>
-        /// <param name="vistor">The visitor which will accept the typed property.</param>
+        /// <param name="visitor">The visitor which will accept the typed property.</param>
         /// <param name="data">The user data to pass.</param>
         /// <param name="data">The user data to pass.</param>
-        public abstract void Accept<TData>(IAvaloniaPropertyVisitor<TData> vistor, ref TData data)
+        public abstract void Accept<TData>(IAvaloniaPropertyVisitor<TData> visitor, ref TData data)
             where TData : struct;
             where TData : struct;
 
 
         /// <summary>
         /// <summary>

+ 2 - 2
src/Avalonia.Base/AvaloniaPropertyChangedEventArgs.cs

@@ -58,8 +58,8 @@ namespace Avalonia
         /// <remarks>
         /// <remarks>
         /// This will usually be true, except in
         /// This will usually be true, except in
         /// <see cref="AvaloniaObject.OnPropertyChangedCore{T}(AvaloniaPropertyChangedEventArgs{T})"/>
         /// <see cref="AvaloniaObject.OnPropertyChangedCore{T}(AvaloniaPropertyChangedEventArgs{T})"/>
-        /// which recieves notifications for all changes to property values, whether a value with a higher
-        /// priority is present or not. When this property is false, the change that is being signalled
+        /// which receives notifications for all changes to property values, whether a value with a higher
+        /// priority is present or not. When this property is false, the change that is being signaled
         /// has not resulted in a change to the property value on the object.
         /// has not resulted in a change to the property value on the object.
         /// </remarks>
         /// </remarks>
         public bool IsEffectiveValueChange { get; private set; }
         public bool IsEffectiveValueChange { get; private set; }

+ 1 - 1
src/Avalonia.Base/Collections/Pooled/PooledList.cs

@@ -1271,7 +1271,7 @@ namespace Avalonia.Collections.Pooled
         /// Reverses the elements in a range of this list. Following a call to this
         /// Reverses the elements in a range of this list. Following a call to this
         /// method, an element in the range given by index and count
         /// method, an element in the range given by index and count
         /// which was previously located at index i will now be located at
         /// which was previously located at index i will now be located at
-        /// index index + (index + count - i - 1).
+        /// index + (index + count - i - 1).
         /// </summary>
         /// </summary>
         public void Reverse(int index, int count)
         public void Reverse(int index, int count)
         {
         {

+ 1 - 1
src/Avalonia.Base/Data/Core/Plugins/IDataValidationPlugin.cs

@@ -20,7 +20,7 @@ namespace Avalonia.Data.Core.Plugins
         /// </summary>
         /// </summary>
         /// <param name="reference">A weak reference to the object.</param>
         /// <param name="reference">A weak reference to the object.</param>
         /// <param name="propertyName">The property name.</param>
         /// <param name="propertyName">The property name.</param>
-        /// <param name="inner">The inner property accessor used to aceess the property.</param>
+        /// <param name="inner">The inner property accessor used to access the property.</param>
         /// <returns>
         /// <returns>
         /// An <see cref="IPropertyAccessor"/> interface through which future interactions with the 
         /// An <see cref="IPropertyAccessor"/> interface through which future interactions with the 
         /// property will be made.
         /// property will be made.

+ 3 - 3
src/Avalonia.Base/DirectPropertyBase.cs

@@ -13,7 +13,7 @@ namespace Avalonia
     /// <typeparam name="TValue">The type of the property's value.</typeparam>
     /// <typeparam name="TValue">The type of the property's value.</typeparam>
     /// <remarks>
     /// <remarks>
     /// Whereas <see cref="DirectProperty{TOwner, TValue}"/> is typed on the owner type, this base
     /// Whereas <see cref="DirectProperty{TOwner, TValue}"/> is typed on the owner type, this base
-    /// class provides a non-owner-typed interface to a direct poperty.
+    /// class provides a non-owner-typed interface to a direct property.
     /// </remarks>
     /// </remarks>
     public abstract class DirectPropertyBase<TValue> : AvaloniaProperty<TValue>
     public abstract class DirectPropertyBase<TValue> : AvaloniaProperty<TValue>
     {
     {
@@ -123,9 +123,9 @@ namespace Avalonia
         }
         }
 
 
         /// <inheritdoc/>
         /// <inheritdoc/>
-        public override void Accept<TData>(IAvaloniaPropertyVisitor<TData> vistor, ref TData data)
+        public override void Accept<TData>(IAvaloniaPropertyVisitor<TData> visitor, ref TData data)
         {
         {
-            vistor.Visit(this, ref data);
+            visitor.Visit(this, ref data);
         }
         }
 
 
         /// <inheritdoc/>
         /// <inheritdoc/>

+ 1 - 1
src/Avalonia.Base/DirectPropertyMetadata`1.cs

@@ -38,7 +38,7 @@ namespace Avalonia
         /// <remarks>
         /// <remarks>
         /// Data validation is validation performed at the target of a binding, for example in a
         /// Data validation is validation performed at the target of a binding, for example in a
         /// view model using the INotifyDataErrorInfo interface. Only certain properties on a
         /// view model using the INotifyDataErrorInfo interface. Only certain properties on a
-        /// control (such as a TextBox's Text property) will be interested in recieving data
+        /// control (such as a TextBox's Text property) will be interested in receiving data
         /// validation messages so this feature must be explicitly enabled by setting this flag.
         /// validation messages so this feature must be explicitly enabled by setting this flag.
         /// </remarks>
         /// </remarks>
         public bool? EnableDataValidation { get; private set; }
         public bool? EnableDataValidation { get; private set; }

+ 4 - 4
src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs

@@ -877,7 +877,7 @@ namespace Avalonia.Collections
                         if (!CheckFlag(CollectionViewFlags.IsMoveToPageDeferred))
                         if (!CheckFlag(CollectionViewFlags.IsMoveToPageDeferred))
                         {
                         {
                             // if the temporaryGroup was not created yet and is out of sync
                             // if the temporaryGroup was not created yet and is out of sync
-                            // then create it so that we can use it as a refernce while paging.
+                            // then create it so that we can use it as a reference while paging.
                             if (IsGrouping && _temporaryGroup.ItemCount != InternalList.Count)
                             if (IsGrouping && _temporaryGroup.ItemCount != InternalList.Count)
                             {
                             {
                                 PrepareTemporaryGroups();
                                 PrepareTemporaryGroups();
@@ -889,7 +889,7 @@ namespace Avalonia.Collections
                     else if (IsGrouping)
                     else if (IsGrouping)
                     {
                     {
                         // if the temporaryGroup was not created yet and is out of sync
                         // if the temporaryGroup was not created yet and is out of sync
-                        // then create it so that we can use it as a refernce while paging.
+                        // then create it so that we can use it as a reference while paging.
                         if (_temporaryGroup.ItemCount != InternalList.Count)
                         if (_temporaryGroup.ItemCount != InternalList.Count)
                         {
                         {
                             // update the groups that get created for the
                             // update the groups that get created for the
@@ -1951,7 +1951,7 @@ namespace Avalonia.Collections
             EnsureCollectionInSync();
             EnsureCollectionInSync();
             VerifyRefreshNotDeferred();
             VerifyRefreshNotDeferred();
 
 
-            // for indicies larger than the count
+            // for indices larger than the count
             if (index >= Count || index < 0)
             if (index >= Count || index < 0)
             {
             {
                 throw new ArgumentOutOfRangeException("index");
                 throw new ArgumentOutOfRangeException("index");
@@ -3800,7 +3800,7 @@ namespace Avalonia.Collections
         /// </summary>
         /// </summary>
         /// <remarks>
         /// <remarks>
         /// This method can be called from a constructor - it does not call
         /// This method can be called from a constructor - it does not call
-        /// any virtuals.  The 'count' parameter is substitute for the real Count,
+        /// any virtuals. The 'count' parameter is substitute for the real Count,
         /// used only when newItem is null.
         /// used only when newItem is null.
         /// In that case, this method sets IsCurrentAfterLast to true if and only
         /// In that case, this method sets IsCurrentAfterLast to true if and only
         /// if newPosition >= count.  This distinguishes between a null belonging
         /// if newPosition >= count.  This distinguishes between a null belonging

+ 1 - 1
src/Avalonia.Controls.DataGrid/DataGrid.cs

@@ -5731,7 +5731,7 @@ namespace Avalonia.Controls
                 {
                 {
                     if (SelectionMode == DataGridSelectionMode.Single || !ctrl)
                     if (SelectionMode == DataGridSelectionMode.Single || !ctrl)
                     {
                     {
-                        // Unselect the currectly selected rows except the new selected row
+                        // Unselect the currently selected rows except the new selected row
                         action = DataGridSelectionAction.SelectCurrent;
                         action = DataGridSelectionAction.SelectCurrent;
                     }
                     }
                     else
                     else

+ 1 - 1
src/Avalonia.Controls.DataGrid/DataGridCell.cs

@@ -197,7 +197,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         // Makes sure the right gridline has the proper stroke and visibility. If lastVisibleColumn is specified, the 
         // Makes sure the right gridline has the proper stroke and visibility. If lastVisibleColumn is specified, the 
-        // right gridline will be collapsed if this cell belongs to the lastVisibileColumn and there is no filler column
+        // right gridline will be collapsed if this cell belongs to the lastVisibleColumn and there is no filler column
         internal void EnsureGridLine(DataGridColumn lastVisibleColumn)
         internal void EnsureGridLine(DataGridColumn lastVisibleColumn)
         {
         {
             if (OwningGrid != null && _rightGridLine != null)
             if (OwningGrid != null && _rightGridLine != null)

+ 1 - 1
src/Avalonia.Controls.DataGrid/DataGridCellCoordinates.cs

@@ -40,7 +40,7 @@ namespace Avalonia.Controls
             return false;
             return false;
         }
         }
 
 
-        // There is build warning if this is missiing
+        // There is build warning if this is missing
         public override int GetHashCode()
         public override int GetHashCode()
         {
         {
             return base.GetHashCode();
             return base.GetHashCode();

+ 1 - 1
src/Avalonia.Controls.DataGrid/DataGridClipboard.cs

@@ -189,7 +189,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// DataGrid row item used for proparing the ClipboardRowContent.
+        /// DataGrid row item used for preparing the ClipboardRowContent.
         /// </summary>
         /// </summary>
         public object Item
         public object Item
         {
         {

+ 1 - 1
src/Avalonia.Controls.DataGrid/DataGridColumn.cs

@@ -787,7 +787,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// If the DataGrid is using using layout rounding, the pixel snapping will force all widths to
+        /// If the DataGrid is using layout rounding, the pixel snapping will force all widths to
         /// whole numbers. Since the column widths aren't visual elements, they don't go through the normal
         /// whole numbers. Since the column widths aren't visual elements, they don't go through the normal
         /// rounding process, so we need to do it ourselves.  If we don't, then we'll end up with some
         /// rounding process, so we need to do it ourselves.  If we don't, then we'll end up with some
         /// pixel gaps and/or overlaps between columns.
         /// pixel gaps and/or overlaps between columns.

+ 4 - 4
src/Avalonia.Controls.DataGrid/DataGridDisplayData.cs

@@ -79,7 +79,7 @@ namespace Avalonia.Controls
             set;
             set;
         }
         }
 
 
-        internal void AddRecylableRow(DataGridRow row)
+        internal void AddRecyclableRow(DataGridRow row)
         {
         {
             Debug.Assert(!_recyclableRows.Contains(row));
             Debug.Assert(!_recyclableRows.Contains(row));
             row.DetachFromDataGrid(true);
             row.DetachFromDataGrid(true);
@@ -120,7 +120,7 @@ namespace Avalonia.Controls
                     {
                     {
                         if (row.IsRecyclable)
                         if (row.IsRecyclable)
                         {
                         {
-                            AddRecylableRow(row);
+                            AddRecyclableRow(row);
                         }
                         }
                         else
                         else
                         {
                         {
@@ -193,7 +193,7 @@ namespace Avalonia.Controls
 
 
         internal void FullyRecycleElements()
         internal void FullyRecycleElements()
         {
         {
-            // Fully recycle Recycleable rows and transfer them to Recycled rows
+            // Fully recycle Recyclable rows and transfer them to Recycled rows
             while (_recyclableRows.Count > 0)
             while (_recyclableRows.Count > 0)
             {
             {
                 DataGridRow row = _recyclableRows.Pop();
                 DataGridRow row = _recyclableRows.Pop();
@@ -202,7 +202,7 @@ namespace Avalonia.Controls
                 Debug.Assert(!_fullyRecycledRows.Contains(row));
                 Debug.Assert(!_fullyRecycledRows.Contains(row));
                 _fullyRecycledRows.Push(row);
                 _fullyRecycledRows.Push(row);
             }
             }
-            // Fully recycle Recycleable GroupHeaders and transfer them to Recycled GroupHeaders
+            // Fully recycle Recyclable GroupHeaders and transfer them to Recycled GroupHeaders
             while (_recyclableGroupHeaders.Count > 0)
             while (_recyclableGroupHeaders.Count > 0)
             {
             {
                 DataGridRowGroupHeader groupHeader = _recyclableGroupHeaders.Pop();
                 DataGridRowGroupHeader groupHeader = _recyclableGroupHeaders.Pop();

+ 3 - 3
src/Avalonia.Controls.DataGrid/DataGridRow.cs

@@ -392,7 +392,7 @@ namespace Avalonia.Controls
             set;
             set;
         }
         }
 
 
-        // Height that the row will eventually end up at after a possible detalis animation has completed
+        // Height that the row will eventually end up at after a possible details animation has completed
         internal double TargetHeight
         internal double TargetHeight
         {
         {
             get
             get
@@ -517,7 +517,7 @@ namespace Avalonia.Controls
                 return base.MeasureOverride(availableSize);
                 return base.MeasureOverride(availableSize);
             }
             }
 
 
-            //Allow the DataGrid specific componets to adjust themselves based on new values
+            //Allow the DataGrid specific components to adjust themselves based on new values
             if (_headerElement != null)
             if (_headerElement != null)
             {
             {
                 _headerElement.InvalidateMeasure();
                 _headerElement.InvalidateMeasure();
@@ -722,7 +722,7 @@ namespace Avalonia.Controls
                 if (_bottomGridLine != null)
                 if (_bottomGridLine != null)
                 {
                 {
                     // It looks like setting Visibility sometimes has side effects so make sure the value is actually
                     // It looks like setting Visibility sometimes has side effects so make sure the value is actually
-                    // diffferent before setting it
+                    // different before setting it
                     bool newVisibility = OwningGrid.GridLinesVisibility == DataGridGridLinesVisibility.Horizontal || OwningGrid.GridLinesVisibility == DataGridGridLinesVisibility.All;
                     bool newVisibility = OwningGrid.GridLinesVisibility == DataGridGridLinesVisibility.Horizontal || OwningGrid.GridLinesVisibility == DataGridGridLinesVisibility.All;
 
 
                     if (newVisibility != _bottomGridLine.IsVisible)
                     if (newVisibility != _bottomGridLine.IsVisible)

+ 9 - 9
src/Avalonia.Controls.DataGrid/DataGridRows.cs

@@ -1193,7 +1193,7 @@ namespace Avalonia.Controls
                 else
                 else
                 {
                 {
                     groupHeader = element as DataGridRowGroupHeader;
                     groupHeader = element as DataGridRowGroupHeader;
-                    Debug.Assert(groupHeader != null);  // Nothig other and Rows and RowGroups now
+                    Debug.Assert(groupHeader != null);  // Nothing other and Rows and RowGroups now
                     if (groupHeader != null)
                     if (groupHeader != null)
                     {
                     {
                         groupHeader.TotalIndent = (groupHeader.Level == 0) ? 0 : RowGroupSublevelIndents[groupHeader.Level - 1];
                         groupHeader.TotalIndent = (groupHeader.Level == 0) ? 0 : RowGroupSublevelIndents[groupHeader.Level - 1];
@@ -1636,7 +1636,7 @@ namespace Avalonia.Controls
             if (slot >= DisplayData.FirstScrollingSlot &&
             if (slot >= DisplayData.FirstScrollingSlot &&
                 slot <= DisplayData.LastScrollingSlot)
                 slot <= DisplayData.LastScrollingSlot)
             {
             {
-                // Additional row takes the spot of a displayed row - it is necessarilly displayed
+                // Additional row takes the spot of a displayed row - it is necessarily displayed
                 return true;
                 return true;
             }
             }
             else if (DisplayData.FirstScrollingSlot == -1 &&
             else if (DisplayData.FirstScrollingSlot == -1 &&
@@ -1825,7 +1825,7 @@ namespace Avalonia.Controls
                 if (MathUtilities.LessThan(firstRowHeight, NegVerticalOffset))
                 if (MathUtilities.LessThan(firstRowHeight, NegVerticalOffset))
                 {
                 {
                     // We've scrolled off more of the first row than what's possible.  This can happen
                     // We've scrolled off more of the first row than what's possible.  This can happen
-                    // if the first row got shorter (Ex: Collpasing RowDetails) or if the user has a recycling
+                    // if the first row got shorter (Ex: Collapsing RowDetails) or if the user has a recycling
                     // cleanup issue.  In this case, simply try to display the next row as the first row instead
                     // cleanup issue.  In this case, simply try to display the next row as the first row instead
                     if (newFirstScrollingSlot < SlotCount - 1)
                     if (newFirstScrollingSlot < SlotCount - 1)
                     {
                     {
@@ -2014,7 +2014,7 @@ namespace Avalonia.Controls
 
 
             if (recycleRow)
             if (recycleRow)
             {
             {
-                DisplayData.AddRecylableRow(dataGridRow);
+                DisplayData.AddRecyclableRow(dataGridRow);
             }
             }
             else
             else
             {
             {
@@ -2265,7 +2265,7 @@ namespace Avalonia.Controls
                     if (parentGroupInfo.LastSubItemSlot - parentGroupInfo.Slot == 1)
                     if (parentGroupInfo.LastSubItemSlot - parentGroupInfo.Slot == 1)
                     {
                     {
                         // We just added the first item to a RowGroup so the header should transition from Empty to either Expanded or Collapsed
                         // We just added the first item to a RowGroup so the header should transition from Empty to either Expanded or Collapsed
-                        EnsureAnscestorsExpanderButtonChecked(parentGroupInfo);
+                        EnsureAncestorsExpanderButtonChecked(parentGroupInfo);
                     }
                     }
                 }
                 }
             }
             }
@@ -2407,7 +2407,7 @@ namespace Avalonia.Controls
             return treeCount;
             return treeCount;
         }
         }
 
 
-        private void EnsureAnscestorsExpanderButtonChecked(DataGridRowGroupInfo parentGroupInfo)
+        private void EnsureAncestorsExpanderButtonChecked(DataGridRowGroupInfo parentGroupInfo)
         {
         {
             if (IsSlotVisible(parentGroupInfo.Slot))
             if (IsSlotVisible(parentGroupInfo.Slot))
             {
             {
@@ -2789,11 +2789,11 @@ namespace Avalonia.Controls
             return null;
             return null;
         }
         }
 
 
-        internal void OnRowGroupHeaderToggled(DataGridRowGroupHeader groupHeader, bool newIsVisibile, bool setCurrent)
+        internal void OnRowGroupHeaderToggled(DataGridRowGroupHeader groupHeader, bool newIsVisible, bool setCurrent)
         {
         {
             Debug.Assert(groupHeader.RowGroupInfo.CollectionViewGroup.ItemCount > 0);
             Debug.Assert(groupHeader.RowGroupInfo.CollectionViewGroup.ItemCount > 0);
 
 
-            if (WaitForLostFocus(delegate { OnRowGroupHeaderToggled(groupHeader, newIsVisibile, setCurrent); }) || !CommitEdit())
+            if (WaitForLostFocus(delegate { OnRowGroupHeaderToggled(groupHeader, newIsVisible, setCurrent); }) || !CommitEdit())
             {
             {
                 return;
                 return;
             }
             }
@@ -2804,7 +2804,7 @@ namespace Avalonia.Controls
                 UpdateSelectionAndCurrency(CurrentColumnIndex, groupHeader.RowGroupInfo.Slot, DataGridSelectionAction.SelectCurrent, scrollIntoView: false);
                 UpdateSelectionAndCurrency(CurrentColumnIndex, groupHeader.RowGroupInfo.Slot, DataGridSelectionAction.SelectCurrent, scrollIntoView: false);
             }
             }
 
 
-            UpdateRowGroupVisibility(groupHeader.RowGroupInfo, newIsVisibile, isDisplayed: true);
+            UpdateRowGroupVisibility(groupHeader.RowGroupInfo, newIsVisible, isDisplayed: true);
 
 
             ComputeScrollBarsLayout();
             ComputeScrollBarsLayout();
             // We need force arrange since our Scrollings Rows could update without automatically triggering layout
             // We need force arrange since our Scrollings Rows could update without automatically triggering layout

+ 1 - 1
src/Avalonia.Controls.DataGrid/Primitives/DataGridColumnHeadersPresenter.cs

@@ -140,7 +140,7 @@ namespace Avalonia.Controls.Primitives
                 if (dataGridColumn.IsFrozen)
                 if (dataGridColumn.IsFrozen)
                 {
                 {
                     columnHeader.Arrange(new Rect(frozenLeftEdge, 0, dataGridColumn.LayoutRoundedWidth, finalSize.Height));
                     columnHeader.Arrange(new Rect(frozenLeftEdge, 0, dataGridColumn.LayoutRoundedWidth, finalSize.Height));
-                    columnHeader.Clip = null; // The layout system could have clipped this becaues it's not aware of our render transform
+                    columnHeader.Clip = null; // The layout system could have clipped this because it's not aware of our render transform
                     if (DragColumn == dataGridColumn && DragIndicator != null)
                     if (DragColumn == dataGridColumn && DragIndicator != null)
                     {
                     {
                         dragIndicatorLeftEdge = frozenLeftEdge + DragIndicatorOffset;
                         dragIndicatorLeftEdge = frozenLeftEdge + DragIndicatorOffset;

+ 1 - 1
src/Avalonia.Controls/AppBuilderBase.cs

@@ -273,7 +273,7 @@ namespace Avalonia.Controls
         }
         }
         
         
         /// <summary>
         /// <summary>
-        /// Sets up the platform-speciic services for the <see cref="Application"/>.
+        /// Sets up the platform-specific services for the <see cref="Application"/>.
         /// </summary>
         /// </summary>
         private void Setup()
         private void Setup()
         {
         {

+ 5 - 5
src/Avalonia.Controls/Converters/MarginMultiplierConverter.cs

@@ -26,13 +26,13 @@ namespace Avalonia.Controls.Converters
                     Right ? Indent * scalarDepth : 0,
                     Right ? Indent * scalarDepth : 0,
                     Bottom ? Indent * scalarDepth : 0);
                     Bottom ? Indent * scalarDepth : 0);
             }
             }
-            else if (value is Thickness thinknessDepth)
+            else if (value is Thickness thicknessDepth)
             {
             {
                 return new Thickness(
                 return new Thickness(
-                    Left ? Indent * thinknessDepth.Left : 0,
-                    Top ? Indent * thinknessDepth.Top : 0,
-                    Right ? Indent * thinknessDepth.Right : 0,
-                    Bottom ? Indent * thinknessDepth.Bottom : 0);
+                    Left ? Indent * thicknessDepth.Left : 0,
+                    Top ? Indent * thicknessDepth.Top : 0,
+                    Right ? Indent * thicknessDepth.Right : 0,
+                    Bottom ? Indent * thicknessDepth.Bottom : 0);
             }
             }
             return new Thickness(0);
             return new Thickness(0);
             
             

+ 2 - 2
src/Avalonia.Controls/Converters/MenuScrollingVisibilityConverter.cs

@@ -16,7 +16,7 @@ namespace Avalonia.Controls.Converters
             if (parameter == null ||
             if (parameter == null ||
                 values == null ||
                 values == null ||
                 values.Count != 4 ||
                 values.Count != 4 ||
-                !(values[0] is ScrollBarVisibility visiblity) ||
+                !(values[0] is ScrollBarVisibility visibility) ||
                 !(values[1] is double offset) ||
                 !(values[1] is double offset) ||
                 !(values[2] is double extent) ||
                 !(values[2] is double extent) ||
                 !(values[3] is double viewport))
                 !(values[3] is double viewport))
@@ -24,7 +24,7 @@ namespace Avalonia.Controls.Converters
                 return AvaloniaProperty.UnsetValue;
                 return AvaloniaProperty.UnsetValue;
             }
             }
 
 
-            if (visiblity == ScrollBarVisibility.Auto)
+            if (visibility == ScrollBarVisibility.Auto)
             {
             {
                 if (extent == viewport)
                 if (extent == viewport)
                 {
                 {

+ 1 - 1
src/Avalonia.Controls/DateTimePickers/DatePicker.cs

@@ -71,7 +71,7 @@ namespace Avalonia.Controls
                 x => x.MonthVisible, (x, v) => x.MonthVisible = v);
                 x => x.MonthVisible, (x, v) => x.MonthVisible = v);
 
 
         /// <summary>
         /// <summary>
-        /// Defiens the <see cref="YearFormat"/> Property
+        /// Defines the <see cref="YearFormat"/> Property
         /// </summary>
         /// </summary>
         public static readonly DirectProperty<DatePicker, string> YearFormatProperty =
         public static readonly DirectProperty<DatePicker, string> YearFormatProperty =
             AvaloniaProperty.RegisterDirect<DatePicker, string>(nameof(YearFormat), 
             AvaloniaProperty.RegisterDirect<DatePicker, string>(nameof(YearFormat), 

+ 6 - 6
src/Avalonia.Controls/DateTimePickers/DateTimePickerPanel.cs

@@ -220,15 +220,15 @@ namespace Avalonia.Controls.Primitives
 
 
                 if (dy > 0) // Scroll Down
                 if (dy > 0) // Scroll Down
                 {
                 {
-                    int numContsToMove = 0;
+                    int numCountsToMove = 0;
                     for (int i = 0; i < children.Count; i++)
                     for (int i = 0; i < children.Count; i++)
                     {
                     {
                         if (children[i].Bounds.Bottom - dy < 0)
                         if (children[i].Bounds.Bottom - dy < 0)
-                            numContsToMove++;
+                            numCountsToMove++;
                         else
                         else
                             break;
                             break;
                     }
                     }
-                    children.MoveRange(0, numContsToMove, children.Count);
+                    children.MoveRange(0, numCountsToMove, children.Count);
 
 
                     var scrollHeight = _extent.Height - Viewport.Height;
                     var scrollHeight = _extent.Height - Viewport.Height;
                     if (ShouldLoop && value.Y >= scrollHeight - _extentOne)
                     if (ShouldLoop && value.Y >= scrollHeight - _extentOne)
@@ -236,15 +236,15 @@ namespace Avalonia.Controls.Primitives
                 }
                 }
                 else if (dy < 0) // Scroll Up
                 else if (dy < 0) // Scroll Up
                 {
                 {
-                    int numContsToMove = 0;
+                    int numCountsToMove = 0;
                     for (int i = children.Count - 1; i >= 0; i--)
                     for (int i = children.Count - 1; i >= 0; i--)
                     {
                     {
                         if (children[i].Bounds.Top - dy > Bounds.Height)
                         if (children[i].Bounds.Top - dy > Bounds.Height)
-                            numContsToMove++;
+                            numCountsToMove++;
                         else
                         else
                             break;
                             break;
                     }
                     }
-                    children.MoveRange(children.Count - numContsToMove, numContsToMove, 0);
+                    children.MoveRange(children.Count - numCountsToMove, numCountsToMove, 0);
                     if (ShouldLoop && value.Y < _extentOne)
                     if (ShouldLoop && value.Y < _extentOne)
                         _offset = new Vector(0, value.Y + (_extentOne * 50));
                         _offset = new Vector(0, value.Y + (_extentOne * 50));
                 }
                 }

+ 4 - 4
src/Avalonia.Controls/DefinitionBase.cs

@@ -35,7 +35,7 @@ namespace Avalonia.Controls
             if (_sharedState == null)
             if (_sharedState == null)
             {
             {
                 //  start with getting SharedSizeGroup value. 
                 //  start with getting SharedSizeGroup value. 
-                //  this property is NOT inhereted which should result in better overall perf.
+                //  this property is NOT inherited which should result in better overall perf.
                 string sharedSizeGroupId = SharedSizeGroup;
                 string sharedSizeGroupId = SharedSizeGroup;
                 if (sharedSizeGroupId != null)
                 if (sharedSizeGroupId != null)
                 {
                 {
@@ -52,7 +52,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Callback to notify about exitting model tree.
+        /// Callback to notify about exiting model tree.
         /// </summary>
         /// </summary>
         internal void OnExitParentTree()
         internal void OnExitParentTree()
         {
         {
@@ -458,7 +458,7 @@ namespace Avalonia.Controls
         private Grid.LayoutTimeSizeType _sizeType;      //  layout-time user size type. it may differ from _userSizeValueCache.UnitType when calculating "to-content"
         private Grid.LayoutTimeSizeType _sizeType;      //  layout-time user size type. it may differ from _userSizeValueCache.UnitType when calculating "to-content"
 
 
         private double _minSize;                        //  used during measure to accumulate size for "Auto" and "Star" DefinitionBase's
         private double _minSize;                        //  used during measure to accumulate size for "Auto" and "Star" DefinitionBase's
-        private double _measureSize;                    //  size, calculated to be the input contstraint size for Child.Measure
+        private double _measureSize;                    //  size, calculated to be the input constraint size for Child.Measure
         private double _sizeCache;                      //  cache used for various purposes (sorting, caching, etc) during calculations
         private double _sizeCache;                      //  cache used for various purposes (sorting, caching, etc) during calculations
         private double _offset;                         //  offset of the DefinitionBase from left / top corner (assuming LTR case)
         private double _offset;                         //  offset of the DefinitionBase from left / top corner (assuming LTR case)
 
 
@@ -556,7 +556,7 @@ namespace Avalonia.Controls
             }
             }
 
 
             /// <summary>
             /// <summary>
-            /// Propogates invalidations for all registered definitions.
+            /// Propagates invalidations for all registered definitions.
             /// Resets its own state.
             /// Resets its own state.
             /// </summary>
             /// </summary>
             internal void Invalidate()
             internal void Invalidate()

+ 1 - 1
src/Avalonia.Controls/Flyouts/FlyoutBase.cs

@@ -485,7 +485,7 @@ namespace Avalonia.Controls.Primitives
 
 
         internal static void SetPresenterClasses(IControl presenter, Classes classes)
         internal static void SetPresenterClasses(IControl presenter, Classes classes)
         {
         {
-            //Remove any classes no longer in use, ignoring pseudoclasses
+            //Remove any classes no longer in use, ignoring pseudo classes
             for (int i = presenter.Classes.Count - 1; i >= 0; i--)
             for (int i = presenter.Classes.Count - 1; i >= 0; i--)
             {
             {
                 if (!classes.Contains(presenter.Classes[i]) &&
                 if (!classes.Contains(presenter.Classes[i]) &&

+ 9 - 9
src/Avalonia.Controls/Grid.cs

@@ -330,7 +330,7 @@ namespace Avalonia.Controls
                     //  value of Auto column), "cell 2 1" needs to be calculated first,
                     //  value of Auto column), "cell 2 1" needs to be calculated first,
                     //  as it contributes to the Auto column's calculated value.
                     //  as it contributes to the Auto column's calculated value.
                     //  At the same time in order to accurately calculate constraint
                     //  At the same time in order to accurately calculate constraint
-                    //  height for "cell 2 1", "cell 1 2" needs to be calcualted first,
+                    //  height for "cell 2 1", "cell 1 2" needs to be calculated first,
                     //  as it contributes to Auto row height, which is used in the
                     //  as it contributes to Auto row height, which is used in the
                     //  computation of Star row resolved height.
                     //  computation of Star row resolved height.
                     //
                     //
@@ -405,11 +405,11 @@ namespace Avalonia.Controls
                     //
                     //
                     //  where:
                     //  where:
                     //  *   all [Measure GroupN] - regular children measure process -
                     //  *   all [Measure GroupN] - regular children measure process -
-                    //      each cell is measured given contraint size as an input
+                    //      each cell is measured given constraint size as an input
                     //      and each cell's desired size is accumulated on the
                     //      and each cell's desired size is accumulated on the
                     //      corresponding column / row;
                     //      corresponding column / row;
                     //  *   [Measure Group2'] - is when each cell is measured with
                     //  *   [Measure Group2'] - is when each cell is measured with
-                    //      infinit height as a constraint and a cell's desired
+                    //      infinite height as a constraint and a cell's desired
                     //      height is ignored;
                     //      height is ignored;
                     //  *   [Measure Groups''] - is when each cell is measured (second
                     //  *   [Measure Groups''] - is when each cell is measured (second
                     //      time during single Grid.MeasureOverride) regularly but its
                     //      time during single Grid.MeasureOverride) regularly but its
@@ -780,7 +780,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Initializes DefinitionsU memeber either to user supplied ColumnDefinitions collection
+        /// Initializes DefinitionsU member either to user supplied ColumnDefinitions collection
         /// or to a default single element collection. DefinitionsU gets trimmed to size.
         /// or to a default single element collection. DefinitionsU gets trimmed to size.
         /// </summary>
         /// </summary>
         /// <remarks>
         /// <remarks>
@@ -821,7 +821,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Initializes DefinitionsV memeber either to user supplied RowDefinitions collection
+        /// Initializes DefinitionsV member either to user supplied RowDefinitions collection
         /// or to a default single element collection. DefinitionsV gets trimmed to size.
         /// or to a default single element collection. DefinitionsV gets trimmed to size.
         /// </summary>
         /// </summary>
         /// <remarks>
         /// <remarks>
@@ -2132,7 +2132,7 @@ namespace Avalonia.Controls
                 //
                 //
                 // Fortunately, our scenarios tend to have a small number of columns (~10 or fewer)
                 // Fortunately, our scenarios tend to have a small number of columns (~10 or fewer)
                 // each being allocated a large number of pixels (~50 or greater), and
                 // each being allocated a large number of pixels (~50 or greater), and
-                // people don't even notice the kind of 1-pixel anomolies that are
+                // people don't even notice the kind of 1-pixel anomalies that are
                 // theoretically inevitable, or don't care if they do.  At least they shouldn't
                 // theoretically inevitable, or don't care if they do.  At least they shouldn't
                 // care - no one should be using the results WPF's grid layout to make
                 // care - no one should be using the results WPF's grid layout to make
                 // quantitative decisions; its job is to produce a reasonable display, not
                 // quantitative decisions; its job is to produce a reasonable display, not
@@ -2597,7 +2597,7 @@ namespace Avalonia.Controls
             if (scale < 0.0)
             if (scale < 0.0)
             {
             {
                 // if one of the *-weights is Infinity, adjust the weights by mapping
                 // if one of the *-weights is Infinity, adjust the weights by mapping
-                // Infinty to 1.0 and everything else to 0.0:  the infinite items share the
+                // Infinity to 1.0 and everything else to 0.0:  the infinite items share the
                 // available space equally, everyone else gets nothing.
                 // available space equally, everyone else gets nothing.
                 return (Double.IsPositiveInfinity(def.UserSize.Value)) ? 1.0 : 0.0;
                 return (Double.IsPositiveInfinity(def.UserSize.Value)) ? 1.0 : 0.0;
             }
             }
@@ -2655,7 +2655,7 @@ namespace Avalonia.Controls
         private enum Flags
         private enum Flags
         {
         {
             //
             //
-            //  the foolowing flags let grid tracking dirtiness in more granular manner:
+            //  the following flags let grid tracking dirtiness in more granular manner:
             //  * Valid???Structure flags indicate that elements were added or removed.
             //  * Valid???Structure flags indicate that elements were added or removed.
             //  * Valid???Layout flags indicate that layout time portion of the information
             //  * Valid???Layout flags indicate that layout time portion of the information
             //    stored on the objects should be updated.
             //    stored on the objects should be updated.
@@ -2684,7 +2684,7 @@ namespace Avalonia.Controls
 
 
         /// <summary>
         /// <summary>
         /// ShowGridLines property. This property is used mostly
         /// ShowGridLines property. This property is used mostly
-        /// for simplification of visual debuggig. When it is set
+        /// for simplification of visual debugging. When it is set
         /// to <c>true</c> grid lines are drawn to visualize location
         /// to <c>true</c> grid lines are drawn to visualize location
         /// of grid lines.
         /// of grid lines.
         /// </summary>
         /// </summary>

+ 1 - 1
src/Avalonia.Controls/ListBox.cs

@@ -89,7 +89,7 @@ namespace Avalonia.Controls
         /// </summary>
         /// </summary>
         /// <remarks>
         /// <remarks>
         /// Note that the selection mode only applies to selections made via user interaction.
         /// Note that the selection mode only applies to selections made via user interaction.
-        /// Multiple selections can be made programatically regardless of the value of this property.
+        /// Multiple selections can be made programmatically regardless of the value of this property.
         /// </remarks>
         /// </remarks>
         public new SelectionMode SelectionMode
         public new SelectionMode SelectionMode
         {
         {

+ 1 - 1
src/Avalonia.Controls/NativeMenuItemSeparator.cs

@@ -3,7 +3,7 @@
 namespace Avalonia.Controls
 namespace Avalonia.Controls
 {
 {
 
 
-    [Obsolete("This class exists to maintain backwards compatiblity with existing code. Use NativeMenuItemSeparator instead")]
+    [Obsolete("This class exists to maintain backwards compatibility with existing code. Use NativeMenuItemSeparator instead")]
     public class NativeMenuItemSeperator : NativeMenuItemSeparator 
     public class NativeMenuItemSeperator : NativeMenuItemSeparator 
     {
     {
     }
     }

+ 1 - 1
src/Avalonia.Controls/Platform/ExtendClientAreaChromeHints.cs

@@ -25,7 +25,7 @@ namespace Avalonia.Platform
 
 
         /// <summary>
         /// <summary>
         /// Use system chrome where possible. OSX system chrome is used, Windows managed chrome is used.
         /// Use system chrome where possible. OSX system chrome is used, Windows managed chrome is used.
-        /// This is because Windows Chrome can not be shown ontop of user content.
+        /// This is because Windows Chrome can not be shown on top of user content.
         /// </summary>
         /// </summary>
         PreferSystemChrome = 0x02,
         PreferSystemChrome = 0x02,
 
 

+ 1 - 1
src/Avalonia.Controls/Primitives/PopupPositioning/ManagedPopupPositioner.cs

@@ -27,7 +27,7 @@ namespace Avalonia.Controls.Primitives.PopupPositioning
 
 
     /// <summary>
     /// <summary>
     /// An <see cref="IPopupPositioner"/> implementation for platforms on which a popup can be
     /// An <see cref="IPopupPositioner"/> implementation for platforms on which a popup can be
-    /// aritrarily positioned.
+    /// arbitrarily positioned.
     /// </summary>
     /// </summary>
     public class ManagedPopupPositioner : IPopupPositioner
     public class ManagedPopupPositioner : IPopupPositioner
     {
     {

+ 1 - 1
src/Avalonia.Controls/Primitives/RangeBase.cs

@@ -170,7 +170,7 @@ namespace Avalonia.Controls.Primitives
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Checks if the double value is not inifinity nor NaN.
+        /// Checks if the double value is not infinity nor NaN.
         /// </summary>
         /// </summary>
         /// <param name="value">The value.</param>
         /// <param name="value">The value.</param>
         private static bool ValidateDouble(double value)
         private static bool ValidateDouble(double value)

+ 1 - 1
src/Avalonia.Controls/Primitives/SelectingItemsControl.cs

@@ -310,7 +310,7 @@ namespace Avalonia.Controls.Primitives
         /// </summary>
         /// </summary>
         /// <remarks>
         /// <remarks>
         /// Note that the selection mode only applies to selections made via user interaction.
         /// Note that the selection mode only applies to selections made via user interaction.
-        /// Multiple selections can be made programatically regardless of the value of this property.
+        /// Multiple selections can be made programmatically regardless of the value of this property.
         /// </remarks>
         /// </remarks>
         protected SelectionMode SelectionMode
         protected SelectionMode SelectionMode
         {
         {

+ 1 - 1
src/Avalonia.Controls/Repeater/IElementFactory.cs

@@ -46,7 +46,7 @@ namespace Avalonia.Controls
     }
     }
 
 
     /// <summary>
     /// <summary>
-    /// A data template that supports creating and recyling elements for an <see cref="ItemsRepeater"/>.
+    /// A data template that supports creating and recycling elements for an <see cref="ItemsRepeater"/>.
     /// </summary>
     /// </summary>
     public interface IElementFactory : IDataTemplate
     public interface IElementFactory : IDataTemplate
     {
     {

+ 2 - 2
src/Avalonia.Controls/Repeater/ItemsRepeater.cs

@@ -441,9 +441,9 @@ namespace Avalonia.Controls
             base.OnPropertyChanged(change);
             base.OnPropertyChanged(change);
         }
         }
 
 
-        internal IControl GetElementImpl(int index, bool forceCreate, bool supressAutoRecycle)
+        internal IControl GetElementImpl(int index, bool forceCreate, bool suppressAutoRecycle)
         {
         {
-            var element = _viewManager.GetElement(index, forceCreate, supressAutoRecycle);
+            var element = _viewManager.GetElement(index, forceCreate, suppressAutoRecycle);
             return element;
             return element;
         }
         }
 
 

+ 1 - 1
src/Avalonia.Controls/Repeater/ViewManager.cs

@@ -174,7 +174,7 @@ namespace Avalonia.Controls
             }
             }
             else
             else
             {
             {
-                // We could not find a candiate.
+                // We could not find a candidate.
                 _lastFocusedElement = null;
                 _lastFocusedElement = null;
             }
             }
         }
         }

+ 1 - 1
src/Avalonia.Controls/Repeater/ViewportManager.cs

@@ -186,7 +186,7 @@ namespace Avalonia.Controls
                 _expectedViewportShift.X + _layoutExtent.X - extent.X,
                 _expectedViewportShift.X + _layoutExtent.X - extent.X,
                 _expectedViewportShift.Y + _layoutExtent.Y - extent.Y);
                 _expectedViewportShift.Y + _layoutExtent.Y - extent.Y);
 
 
-            // We tolerate viewport imprecisions up to 1 pixel to avoid invaliding layout too much.
+            // We tolerate viewport imprecisions up to 1 pixel to avoid invalidating layout too much.
             if (Math.Abs(_expectedViewportShift.X) > 1 || Math.Abs(_expectedViewportShift.Y) > 1)
             if (Math.Abs(_expectedViewportShift.X) > 1 || Math.Abs(_expectedViewportShift.Y) > 1)
             {
             {
                 Logger.TryGet(LogEventLevel.Verbose, "Repeater")?.Log(this, "{LayoutId}: Expecting viewport shift of ({Shift})",
                 Logger.TryGet(LogEventLevel.Verbose, "Repeater")?.Log(this, "{LayoutId}: Expecting viewport shift of ({Shift})",

+ 1 - 1
src/Avalonia.Controls/ScrollViewer.cs

@@ -653,7 +653,7 @@ namespace Avalonia.Controls
         private void CalculatedPropertiesChanged()
         private void CalculatedPropertiesChanged()
         {
         {
             // Pass old values of 0 here because we don't have the old values at this point,
             // Pass old values of 0 here because we don't have the old values at this point,
-            // and it shouldn't matter as only the template uses these properies.
+            // and it shouldn't matter as only the template uses these properties.
             RaisePropertyChanged(HorizontalScrollBarMaximumProperty, 0, HorizontalScrollBarMaximum);
             RaisePropertyChanged(HorizontalScrollBarMaximumProperty, 0, HorizontalScrollBarMaximum);
             RaisePropertyChanged(HorizontalScrollBarValueProperty, 0, HorizontalScrollBarValue);
             RaisePropertyChanged(HorizontalScrollBarValueProperty, 0, HorizontalScrollBarValue);
             RaisePropertyChanged(HorizontalScrollBarViewportSizeProperty, 0, HorizontalScrollBarViewportSize);
             RaisePropertyChanged(HorizontalScrollBarViewportSizeProperty, 0, HorizontalScrollBarViewportSize);

+ 1 - 1
src/Avalonia.Controls/Selection/SelectionModel.cs

@@ -345,7 +345,7 @@ namespace Avalonia.Controls.Selection
         private protected override void OnSelectionChanged(IReadOnlyList<T> deselectedItems)
         private protected override void OnSelectionChanged(IReadOnlyList<T> deselectedItems)
         {
         {
             // Note: We're *not* putting this in a using scope. A collection update is still in progress
             // Note: We're *not* putting this in a using scope. A collection update is still in progress
-            // so the operation won't get commited by normal means: we have to commit it manually.
+            // so the operation won't get committed by normal means: we have to commit it manually.
             var update = BatchUpdate();
             var update = BatchUpdate();
 
 
             update.Operation.DeselectedItems = deselectedItems;
             update.Operation.DeselectedItems = deselectedItems;

+ 4 - 4
src/Avalonia.Controls/TickBar.cs

@@ -193,7 +193,7 @@ namespace Avalonia.Controls
 
 
         /// <summary>
         /// <summary>
         /// TickBar will use ReservedSpaceProperty for left and right spacing (for horizontal orientation) or
         /// TickBar will use ReservedSpaceProperty for left and right spacing (for horizontal orientation) or
-        /// top and bottom spacing (for vertical orienation).
+        /// top and bottom spacing (for vertical orientation).
         /// The space on both sides of TickBar is half of specified ReservedSpace.
         /// The space on both sides of TickBar is half of specified ReservedSpace.
         /// This property has type of <see cref="Rect" />.
         /// This property has type of <see cref="Rect" />.
         /// </summary>
         /// </summary>
@@ -210,7 +210,7 @@ namespace Avalonia.Controls
         /// This function also draw selection-tick(s) if IsSelectionRangeEnabled is 'true' and
         /// This function also draw selection-tick(s) if IsSelectionRangeEnabled is 'true' and
         /// SelectionStart and SelectionEnd are valid.
         /// SelectionStart and SelectionEnd are valid.
         ///
         ///
-        /// The primary ticks (for Mininum and Maximum value) height will be 100% of TickBar's render size (use Width or Height
+        /// The primary ticks (for Minimum and Maximum value) height will be 100% of TickBar's render size (use Width or Height
         /// depends on Placement property).
         /// depends on Placement property).
         ///
         ///
         /// The secondary ticks (all other ticks, including selection-tics) height will be 75% of TickBar's render size.
         /// The secondary ticks (all other ticks, including selection-tics) height will be 75% of TickBar's render size.
@@ -221,7 +221,7 @@ namespace Avalonia.Controls
         {
         {
             var size = new Size(Bounds.Width, Bounds.Height);
             var size = new Size(Bounds.Width, Bounds.Height);
             var range = Maximum - Minimum;
             var range = Maximum - Minimum;
-            var tickLen = 0.0d;   // Height for Primary Tick (for Mininum and Maximum value)
+            var tickLen = 0.0d;   // Height for Primary Tick (for Minimum and Maximum value)
             var tickLen2 = 0.0d;  // Height for Secondary Tick
             var tickLen2 = 0.0d;  // Height for Secondary Tick
             var logicalToPhysical = 1.0;
             var logicalToPhysical = 1.0;
             var startPoint = new Point();
             var startPoint = new Point();
@@ -285,7 +285,7 @@ namespace Avalonia.Controls
 
 
             tickLen2 = tickLen * 0.75;
             tickLen2 = tickLen * 0.75;
 
 
-            // Invert direciton of the ticks
+            // Invert direction of the ticks
             if (IsDirectionReversed)
             if (IsDirectionReversed)
             {
             {
                 logicalToPhysical *= -1;
                 logicalToPhysical *= -1;

+ 1 - 1
src/Avalonia.Controls/TopLevel.cs

@@ -224,7 +224,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Gets the acheived <see cref="WindowTransparencyLevel"/> that the platform was able to provide.
+        /// Gets the achieved <see cref="WindowTransparencyLevel"/> that the platform was able to provide.
         /// </summary>
         /// </summary>
         public WindowTransparencyLevel ActualTransparencyLevel
         public WindowTransparencyLevel ActualTransparencyLevel
         {
         {

+ 1 - 1
src/Avalonia.Controls/WindowBase.cs

@@ -264,7 +264,7 @@ namespace Avalonia.Controls
         }
         }
 
 
         /// <summary>
         /// <summary>
-        /// Called durung the arrange pass to set the size of the window.
+        /// Called during the arrange pass to set the size of the window.
         /// </summary>
         /// </summary>
         /// <param name="size">The requested size of the window.</param>
         /// <param name="size">The requested size of the window.</param>
         /// <returns>The actual size of the window.</returns>
         /// <returns>The actual size of the window.</returns>

+ 1 - 1
src/Avalonia.Input/Cursor.cs

@@ -37,7 +37,7 @@ namespace Avalonia.Input
         BottomSize = BottomSide
         BottomSize = BottomSide
 
 
         // Not available in GTK directly, see http://www.pixelbeat.org/programming/x_cursors/ 
         // Not available in GTK directly, see http://www.pixelbeat.org/programming/x_cursors/ 
-        // We might enable them later, preferably, by loading pixmax direclty from theme with fallback image
+        // We might enable them later, preferably, by loading pixmax directly from theme with fallback image
         // SizeNorthWestSouthEast,
         // SizeNorthWestSouthEast,
         // SizeNorthEastSouthWest,
         // SizeNorthEastSouthWest,
     }
     }

+ 1 - 1
src/Avalonia.Input/GestureRecognizers/ScrollGestureRecognizer.cs

@@ -78,7 +78,7 @@ namespace Avalonia.Input.GestureRecognizers
         // Arbitrary chosen value, probably need to move that to platform settings or something
         // Arbitrary chosen value, probably need to move that to platform settings or something
         private const double ScrollStartDistance = 30;
         private const double ScrollStartDistance = 30;
         
         
-        // Pixels per second speed that is considered to be the stop of inertiall scroll
+        // Pixels per second speed that is considered to be the stop of inertial scroll
         private const double InertialScrollSpeedEnd = 5;
         private const double InertialScrollSpeedEnd = 5;
         
         
         public void PointerMoved(PointerEventArgs e)
         public void PointerMoved(PointerEventArgs e)

+ 1 - 1
src/Avalonia.Input/ICommandSource.cs

@@ -22,7 +22,7 @@ namespace Avalonia.Input
 
 
 
 
         /// <summary>
         /// <summary>
-        /// Bor the bheavior CanExecuteChanged
+        /// Bor the behavior CanExecuteChanged
         /// </summary>
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="sender"></param>
         /// <param name="e"></param>
         /// <param name="e"></param>

+ 2 - 2
src/Avalonia.Input/TextInput/ITextInputMethodClient.cs

@@ -22,11 +22,11 @@ namespace Avalonia.Input.TextInput
         /// </summary>
         /// </summary>
         event EventHandler TextViewVisualChanged;
         event EventHandler TextViewVisualChanged;
         /// <summary>
         /// <summary>
-        /// Indicates if TextViewVisual is capable of displaying non-commited input on the cursor position
+        /// Indicates if TextViewVisual is capable of displaying non-committed input on the cursor position
         /// </summary>
         /// </summary>
         bool SupportsPreedit { get; }
         bool SupportsPreedit { get; }
         /// <summary>
         /// <summary>
-        /// Sets the non-commited input string
+        /// Sets the non-committed input string
         /// </summary>
         /// </summary>
         void SetPreeditText(string text);
         void SetPreeditText(string text);
         /// <summary>
         /// <summary>

+ 1 - 1
src/Avalonia.Interactivity/Interactive.cs

@@ -143,7 +143,7 @@ namespace Avalonia.Interactivity
         /// <param name="e">The routed event.</param>
         /// <param name="e">The routed event.</param>
         /// <returns>An <see cref="EventRoute"/> describing the route.</returns>
         /// <returns>An <see cref="EventRoute"/> describing the route.</returns>
         /// <remarks>
         /// <remarks>
-        /// Usually, calling <see cref="RaiseEvent(RoutedEventArgs)"/> is sufficent to raise a routed
+        /// Usually, calling <see cref="RaiseEvent(RoutedEventArgs)"/> is sufficient to raise a routed
         /// event, however there are situations in which the construction of the event args is expensive
         /// event, however there are situations in which the construction of the event args is expensive
         /// and should be avoided if there are no handlers for an event. In these cases you can call
         /// and should be avoided if there are no handlers for an event. In these cases you can call
         /// this method to build the event route and check the <see cref="EventRoute.HasHandlers"/>
         /// this method to build the event route and check the <see cref="EventRoute.HasHandlers"/>

+ 1 - 1
src/Avalonia.Layout/ElementManager.cs

@@ -40,7 +40,7 @@ namespace Avalonia.Layout
             {
             {
                 if (IsVirtualizingContext)
                 if (IsVirtualizingContext)
                 {
                 {
-                    // We proactively clear elements laid out outside of the realizaton
+                    // We proactively clear elements laid out outside of the realization
                     // rect so that they are available for reuse during the current
                     // rect so that they are available for reuse during the current
                     // measure pass.
                     // measure pass.
                     // This is useful during fast panning scenarios in which the realization
                     // This is useful during fast panning scenarios in which the realization

+ 2 - 2
src/Avalonia.Layout/FlowLayoutAlgorithm.cs

@@ -22,7 +22,7 @@ namespace Avalonia.Layout
         private int _firstRealizedDataIndexInsideRealizationWindow = -1;
         private int _firstRealizedDataIndexInsideRealizationWindow = -1;
         private int _lastRealizedDataIndexInsideRealizationWindow = -1;
         private int _lastRealizedDataIndexInsideRealizationWindow = -1;
 
 
-        // If the scroll orientation is the same as the folow orientation
+        // If the scroll orientation is the same as the follow orientation
         // we will only have one line since we will never wrap. In that case
         // we will only have one line since we will never wrap. In that case
         // we do not want to align the line. We could potentially switch the
         // we do not want to align the line. We could potentially switch the
         // meaning of line alignment in this case, but I'll hold off on that
         // meaning of line alignment in this case, but I'll hold off on that
@@ -429,7 +429,7 @@ namespace Avalonia.Layout
 
 
                 // If we did not reach the top or bottom of the extent, we realized one 
                 // If we did not reach the top or bottom of the extent, we realized one 
                 // extra item before we knew we were outside the realization window. Do not
                 // extra item before we knew we were outside the realization window. Do not
-                // account for that element in the indicies inside the realization window.
+                // account for that element in the indices inside the realization window.
                 if (direction == GenerateDirection.Forward)
                 if (direction == GenerateDirection.Forward)
                 {
                 {
                     int dataCount = _context.ItemCount;
                     int dataCount = _context.ItemCount;

+ 2 - 2
src/Avalonia.Native/AvaloniaNativeMenuExporter.cs

@@ -138,7 +138,7 @@ namespace Avalonia.Native
             {
             {
                 _nativeMenu = (__MicroComIAvnMenuProxy)__MicroComIAvnMenuProxy.Create(_factory);
                 _nativeMenu = (__MicroComIAvnMenuProxy)__MicroComIAvnMenuProxy.Create(_factory);
 
 
-                _nativeMenu.Initialise(this, appMenuHolder, "");
+                _nativeMenu.Initialize(this, appMenuHolder, "");
 
 
                 setMenu = true;
                 setMenu = true;
             }
             }
@@ -159,7 +159,7 @@ namespace Avalonia.Native
             {
             {
                 _nativeMenu = __MicroComIAvnMenuProxy.Create(_factory);
                 _nativeMenu = __MicroComIAvnMenuProxy.Create(_factory);
 
 
-                _nativeMenu.Initialise(this, menu, "");     
+                _nativeMenu.Initialize(this, menu, "");     
 
 
                 setMenu = true;           
                 setMenu = true;           
             }
             }

+ 4 - 4
src/Avalonia.Native/IAvnMenu.cs

@@ -96,7 +96,7 @@ namespace Avalonia.Native.Interop.Impl
             _menuItems.Remove(item);
             _menuItems.Remove(item);
             RemoveItem(item);
             RemoveItem(item);
 
 
-            item.Deinitialise();
+            item.Deinitialize();
             item.Dispose();
             item.Dispose();
         }
         }
 
 
@@ -113,7 +113,7 @@ namespace Avalonia.Native.Interop.Impl
         {
         {
             var result = CreateNew(factory, item);
             var result = CreateNew(factory, item);
 
 
-            result.Initialise(item);
+            result.Initialize(item);
 
 
             _menuItemLookup.Add(result.ManagedMenuItem, result);
             _menuItemLookup.Add(result.ManagedMenuItem, result);
             _menuItems.Insert(index, result);
             _menuItems.Insert(index, result);
@@ -133,7 +133,7 @@ namespace Avalonia.Native.Interop.Impl
             return nativeItem;
             return nativeItem;
         }
         }
 
 
-        internal void Initialise(AvaloniaNativeMenuExporter exporter, NativeMenu managedMenu, string title)
+        internal void Initialize(AvaloniaNativeMenuExporter exporter, NativeMenu managedMenu, string title)
         {
         {
             _exporter = exporter;
             _exporter = exporter;
             ManagedMenu = managedMenu;
             ManagedMenu = managedMenu;
@@ -150,7 +150,7 @@ namespace Avalonia.Native.Interop.Impl
 
 
             foreach (var item in _menuItems)
             foreach (var item in _menuItems)
             {
             {
-                item.Deinitialise();
+                item.Deinitialize();
                 item.Dispose();
                 item.Dispose();
             }
             }
         }
         }

+ 3 - 3
src/Avalonia.Native/IAvnMenuItem.cs

@@ -85,7 +85,7 @@ namespace Avalonia.Native.Interop.Impl
             SetAction(action, callback);
             SetAction(action, callback);
         }
         }
 
 
-        internal void Initialise(NativeMenuItemBase nativeMenuItem)
+        internal void Initialize(NativeMenuItemBase nativeMenuItem)
         {
         {
             ManagedMenuItem = nativeMenuItem;
             ManagedMenuItem = nativeMenuItem;
 
 
@@ -123,7 +123,7 @@ namespace Avalonia.Native.Interop.Impl
             }
             }
         }
         }
 
 
-        internal void Deinitialise()
+        internal void Deinitialize()
         {
         {
             if (_subMenu != null)
             if (_subMenu != null)
             {
             {
@@ -150,7 +150,7 @@ namespace Avalonia.Native.Interop.Impl
                 {
                 {
                     _subMenu = __MicroComIAvnMenuProxy.Create(factory);
                     _subMenu = __MicroComIAvnMenuProxy.Create(factory);
 
 
-                    _subMenu.Initialise(exporter, item.Menu, item.Header);
+                    _subMenu.Initialize(exporter, item.Menu, item.Header);
 
 
                     SetSubMenu(_subMenu);
                     SetSubMenu(_subMenu);
                 }
                 }

+ 1 - 1
src/Avalonia.Visuals/Media/TextFormatting/Unicode/LineBreakEnumerator.cs

@@ -284,7 +284,7 @@ namespace Avalonia.Media.TextFormatting.Unicode
             // - U+0028 (Left Opening Parenthesis)
             // - U+0028 (Left Opening Parenthesis)
             // - U+005B (Opening Square Bracket)
             // - U+005B (Opening Square Bracket)
             // - U+007B (Left Curly Bracket)
             // - U+007B (Left Curly Bracket)
-            // See custom colums|rules in the text pair table.
+            // See custom columns|rules in the text pair table.
             // https://www.unicode.org/Public/13.0.0/ucd/auxiliary/LineBreakTest.html
             // https://www.unicode.org/Public/13.0.0/ucd/auxiliary/LineBreakTest.html
             _lb30 = _alphaNumericCount > 0
             _lb30 = _alphaNumericCount > 0
                 && cls == LineBreakClass.OpenPunctuation
                 && cls == LineBreakClass.OpenPunctuation

+ 5 - 5
src/Avalonia.Visuals/Media/Transformation/InterpolationUtilities.cs

@@ -25,14 +25,14 @@ namespace Avalonia.Media.Transformation
                    Matrix.CreateScale(decomposed.Scale);
                    Matrix.CreateScale(decomposed.Scale);
         }
         }
 
 
-        public static Matrix.Decomposed InterpolateDecomposedTransforms(ref Matrix.Decomposed from, ref Matrix.Decomposed to, double progres)
+        public static Matrix.Decomposed InterpolateDecomposedTransforms(ref Matrix.Decomposed from, ref Matrix.Decomposed to, double progress)
         {
         {
             Matrix.Decomposed result = default;
             Matrix.Decomposed result = default;
 
 
-            result.Translate = InterpolateVectors(from.Translate, to.Translate, progres);
-            result.Scale = InterpolateVectors(from.Scale, to.Scale, progres);
-            result.Skew = InterpolateVectors(from.Skew, to.Skew, progres);
-            result.Angle = InterpolateScalars(from.Angle, to.Angle, progres);
+            result.Translate = InterpolateVectors(from.Translate, to.Translate, progress);
+            result.Scale = InterpolateVectors(from.Scale, to.Scale, progress);
+            result.Skew = InterpolateVectors(from.Skew, to.Skew, progress);
+            result.Angle = InterpolateScalars(from.Angle, to.Angle, progress);
 
 
             return result;
             return result;
         }
         }