Skip to content

Commit

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

private void OnIsCheckedChanged(bool? oldValue, bool? newValue)
{
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() => IsChecked = false;

internal void AutomationPeerToggle() => OnClick();
Expand Down

0 comments on commit 7d6afb5

Please sign in to comment.