private void Theme(object sender, EventArgs e) { if (_overrideProtection == 0) { return; } _style.SetTheme(sender); }
private void Theme(object sender, EventArgs e) { if (_overrideProtection == 0) { return; } var routedEventArgs = e as RoutedEventArgs; if (routedEventArgs != null) { _applicationStyle.SetTheme(sender, routedEventArgs); } else { _applicationStyle.SetTheme(sender); } ReloadDisplayButtonStyle(); }