Skip to content

Commit

Permalink
remove event
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Miller committed Sep 29, 2024
1 parent 3c72930 commit 739cf9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
14 changes: 0 additions & 14 deletions Maui.DataGrid/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@
<Right>lib/net8.0/Maui.DataGrid.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Maui.DataGrid.DataGrid.add_FilterChanged(System.EventHandler{Microsoft.Maui.Controls.TextChangedEventArgs})</Target>
<Left>lib/net8.0/Maui.DataGrid.dll</Left>
<Right>lib/net8.0/Maui.DataGrid.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Maui.DataGrid.DataGrid.get_FilteringEnabled</Target>
Expand All @@ -64,13 +57,6 @@
<Right>lib/net8.0/Maui.DataGrid.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Maui.DataGrid.DataGrid.remove_FilterChanged(System.EventHandler{Microsoft.Maui.Controls.TextChangedEventArgs})</Target>
<Left>lib/net8.0/Maui.DataGrid.dll</Left>
<Right>lib/net8.0/Maui.DataGrid.dll</Right>
<IsBaselineSuppression>true</IsBaselineSuppression>
</Suppression>
<Suppression>
<DiagnosticId>CP0002</DiagnosticId>
<Target>M:Maui.DataGrid.DataGrid.set_FilteringEnabled(System.Boolean)</Target>
Expand Down
10 changes: 0 additions & 10 deletions Maui.DataGrid/DataGrid.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,6 @@ public partial class DataGrid
private static readonly IList<int> DefaultPageSizeList = [.. DefaultPageSizeSet];

private readonly WeakEventManager _itemSelectedEventManager = new();
private readonly WeakEventManager _filterChangedEventManager = new();
private readonly WeakEventManager _refreshingEventManager = new();
private readonly WeakEventManager _rowsBackgroundColorPaletteChangedEventManager = new();
private readonly WeakEventManager _rowsTextColorPaletteChangedEventManager = new();
Expand Down Expand Up @@ -694,15 +693,6 @@ public event EventHandler<SelectionChangedEventArgs> ItemSelected
remove => _itemSelectedEventManager.RemoveEventHandler(value);
}

/// <summary>
/// Occurs when an item is selected in the DataGrid.
/// </summary>
public event EventHandler<TextChangedEventArgs> FilterChanged
{
add => _filterChangedEventManager.AddEventHandler(value);
remove => _filterChangedEventManager.RemoveEventHandler(value);
}

/// <summary>
/// Occurs when the DataGrid is being refreshed.
/// </summary>
Expand Down

0 comments on commit 739cf9b

Please sign in to comment.