private static void OnTargetObjectChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { CallMethodWithParameterAction CallMethodWithParameterAction = (CallMethodWithParameterAction)sender; Type newType = args.NewValue != null?args.NewValue.GetType() : null; CallMethodWithParameterAction.UpdateTargetType(newType); }
private static void OnMethodNameChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args) { CallMethodWithParameterAction CallMethodWithParameterAction = (CallMethodWithParameterAction)sender; CallMethodWithParameterAction.UpdateMethodDescriptors(); }