예제 #1
0
        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);
            }
        }
예제 #2
0
 private void Theme(object sender, EventArgs e)
 {
     if (_overrideProtection == 0)
     {
         return;
     }
     _style.SetTheme(sender);
 }