示例#1
0
        static void OnFiredOnChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            KeyTrigger trigger = (KeyTrigger)d;

            trigger.UnregisterSource((KeyTriggerFiredOn)e.OldValue);
            trigger.RegisterSource();
        }
示例#2
0
        static void OnActiveOnFocusChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            KeyTrigger trigger = (KeyTrigger)d;

            trigger.UnregisterSource(trigger.FiredOn);
            trigger.RegisterSource();
        }