From 739cf9be3f79baf3206f9de07f86603bab6d82fc Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Sun, 29 Sep 2024 11:10:18 -0500 Subject: [PATCH] remove event --- Maui.DataGrid/CompatibilitySuppressions.xml | 14 -------------- Maui.DataGrid/DataGrid.xaml.cs | 10 ---------- 2 files changed, 24 deletions(-) diff --git a/Maui.DataGrid/CompatibilitySuppressions.xml b/Maui.DataGrid/CompatibilitySuppressions.xml index 7179397..ff3a52a 100644 --- a/Maui.DataGrid/CompatibilitySuppressions.xml +++ b/Maui.DataGrid/CompatibilitySuppressions.xml @@ -43,13 +43,6 @@ lib/net8.0/Maui.DataGrid.dll true - - CP0002 - M:Maui.DataGrid.DataGrid.add_FilterChanged(System.EventHandler{Microsoft.Maui.Controls.TextChangedEventArgs}) - lib/net8.0/Maui.DataGrid.dll - lib/net8.0/Maui.DataGrid.dll - true - CP0002 M:Maui.DataGrid.DataGrid.get_FilteringEnabled @@ -64,13 +57,6 @@ lib/net8.0/Maui.DataGrid.dll true - - CP0002 - M:Maui.DataGrid.DataGrid.remove_FilterChanged(System.EventHandler{Microsoft.Maui.Controls.TextChangedEventArgs}) - lib/net8.0/Maui.DataGrid.dll - lib/net8.0/Maui.DataGrid.dll - true - CP0002 M:Maui.DataGrid.DataGrid.set_FilteringEnabled(System.Boolean) diff --git a/Maui.DataGrid/DataGrid.xaml.cs b/Maui.DataGrid/DataGrid.xaml.cs index 1aa1bea..b960faa 100644 --- a/Maui.DataGrid/DataGrid.xaml.cs +++ b/Maui.DataGrid/DataGrid.xaml.cs @@ -645,7 +645,6 @@ public partial class DataGrid private static readonly IList 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(); @@ -694,15 +693,6 @@ public event EventHandler ItemSelected remove => _itemSelectedEventManager.RemoveEventHandler(value); } - /// - /// Occurs when an item is selected in the DataGrid. - /// - public event EventHandler FilterChanged - { - add => _filterChangedEventManager.AddEventHandler(value); - remove => _filterChangedEventManager.RemoveEventHandler(value); - } - /// /// Occurs when the DataGrid is being refreshed. ///