Skip to content

Commit

Permalink
chore: Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed May 12, 2023
1 parent da4a5ad commit c56bf96
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/Uno.UI/UI/Xaml/Controls/Primitives/ToggleButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,31 +87,6 @@ public bool IsThreeState
/// </summary>
internal bool CanRevertState { get; set; } = true;

private 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
Expand Down

0 comments on commit c56bf96

Please sign in to comment.