Пример #1
0
        private static void OnTargetNameChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TargetedTriggerAction action = (TargetedTriggerAction)d;
            Binding binding = new Binding("", action.TargetName);

            BindingOperations.SetBinding(action, TargetNameResolverProperty, binding);
        }
Пример #2
0
        static void OnTargetNameResolverChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TargetedTriggerAction action = (TargetedTriggerAction)d;

            if (BindingOperations.GetBinding(action, TargetNameResolverProperty) != null)
            {
                action.UpdateTarget(action.AssociatedObject);
            }
        }
Пример #3
0
        private static void OnTargetObjectChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TargetedTriggerAction action = (TargetedTriggerAction)d;

            action.UpdateTarget(action.AssociatedObject);
        }