diff --git a/src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs b/src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs
index 915dbe1e51..897a7ebf45 100644
--- a/src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs
+++ b/src/Avalonia.Controls.DataGrid/Collections/DataGridCollectionView.cs
@@ -51,24 +51,18 @@ namespace Avalonia.Collections
/// A custom view for specialized sorting, filtering, grouping, and currency.
IDataGridCollectionView CreateView();
}
-
+
///
/// PagedCollectionView view over an IEnumerable.
///
public sealed class CollectionViewBase : IDataGridCollectionView, IDataGridEditableCollectionView, INotifyPropertyChanged //IPagedCollectionView,
{
- #region Static Fields and Constants
-
///
/// Since there's nothing in the un-cancelable event args that is mutable,
/// just create one instance to be used universally.
///
private static readonly DataGridCurrentChangingEventArgs uncancelableCurrentChangingEventArgs = new DataGridCurrentChangingEventArgs(false);
- #endregion Static Fields and Constants
-
- #region Private Fields
-
///
/// Value that we cache for the PageIndex if we are in a DeferRefresh,
/// and the user has attempted to move to a different page.
@@ -201,10 +195,6 @@ namespace Avalonia.Collections
///
private IEnumerator _trackingEnumerator;
- #endregion Private Fields
-
- #region Constructors
-
///
/// Helper constructor that sets default values for isDataSorted and isDataInGroupOrder.
///
@@ -261,14 +251,6 @@ namespace Avalonia.Collections
}
}
- #endregion Constructors
-
- #region Private Delegates
-
- #endregion Private Delegates
-
- #region Events
-
///
/// Raise this event when the (filtered) view changes
///
@@ -319,10 +301,6 @@ namespace Avalonia.Collections
remove { PropertyChanged -= value; }
}
- #endregion Events
-
- #region Enumerators
-
///
/// Enum for CollectionViewFlags
///
@@ -382,8 +360,6 @@ namespace Avalonia.Collections
IsUpdatePageSizeDeferred = 0x200
}
- #endregion Enumerators
-
private Type _itemType;
private Type ItemType
{
@@ -396,8 +372,6 @@ namespace Avalonia.Collections
}
}
- #region Public Properties
-
///
/// Gets a value indicating whether the view supports AddNew.
///
@@ -804,7 +778,6 @@ namespace Avalonia.Collections
{
get { return CheckFlag(CollectionViewFlags.NeedsRefresh); }
}
-
///
/// Gets the current page we are on. (zero based)
@@ -996,10 +969,6 @@ namespace Avalonia.Collections
}
}
- #endregion Public Properties
-
- #region Private Properties
-
///
/// Gets a value indicating whether we have a valid ItemConstructor of the correct type
///
@@ -1175,10 +1144,6 @@ namespace Avalonia.Collections
get { return SortDescriptions.Count > 0 || Filter != null || _pageSize > 0 || GroupDescriptions.Count > 0; }
}
- #endregion Private Properties
-
- #region Indexers
-
///
/// Return the item at the specified index
///
@@ -1189,10 +1154,6 @@ namespace Avalonia.Collections
get { return GetItemAt(index); }
}
- #endregion Indexers
-
- #region Public Methods
-
///
/// Add a new item to the underlying collection. Returns the new item.
/// After calling AddNew and changing the new item as desired, either
@@ -2493,10 +2454,6 @@ namespace Avalonia.Collections
}
}
- #endregion Public Methods
-
- #region Static Methods
-
///
/// Helper for SortList to handle nested properties (e.g. Address.Street)
///
@@ -2514,10 +2471,6 @@ namespace Avalonia.Collections
return propertyValue;
}
- #endregion Static Methods
-
- #region Private Methods
-
///
/// Fix up CurrentPosition and CurrentItem after a collection change
///
@@ -3983,7 +3936,6 @@ namespace Avalonia.Collections
IComparer