diff --git a/build/PackageDiffIgnore.xml b/build/PackageDiffIgnore.xml index b91607e5ff6a..12dfa4076c5f 100644 --- a/build/PackageDiffIgnore.xml +++ b/build/PackageDiffIgnore.xml @@ -1243,7 +1243,7 @@ - + diff --git a/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs b/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs index fd91a2c08250..07f4a5505e76 100644 --- a/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs +++ b/src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs @@ -87,31 +87,6 @@ public bool IsThreeState /// internal bool CanRevertState { get; set; } = true; - protected virtual void OnIsCheckedChanged(bool? oldValue, bool? newValue) - { - // This workaround can be removed if pooling is removed. See https://github.com/unoplatform/uno/issues/12189 - if (_suppressCheckedChanged) - { - return; - } - - if (IsChecked == null) - { - // Indeterminate - Indeterminate?.Invoke(this, new RoutedEventArgs(this)); - } - else if (IsChecked.Value) - { - // Checked - Checked?.Invoke(this, new RoutedEventArgs(this)); - } - else - { - // Unchecked - Unchecked?.Invoke(this, new RoutedEventArgs(this)); - } - } - public void OnTemplateRecycled() { try