private static void OnTargetNameChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { TargetedTriggerAction targetedTriggerAction = (TargetedTriggerAction)obj; targetedTriggerAction.TargetResolver.Name = (string)args.NewValue; }
private static void OnTargetObjectChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) { TargetedTriggerAction targetedTriggerAction = (TargetedTriggerAction)obj; targetedTriggerAction.OnTargetChanged(obj, new NameResolvedEventArgs(args.OldValue, args.NewValue)); }