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