コード例 #1
0
        private static void OnTargetObjectChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            CallMethodWithParameterAction CallMethodWithParameterAction = (CallMethodWithParameterAction)sender;

            Type newType = args.NewValue != null?args.NewValue.GetType() : null;

            CallMethodWithParameterAction.UpdateTargetType(newType);
        }
コード例 #2
0
        private static void OnMethodNameChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            CallMethodWithParameterAction CallMethodWithParameterAction = (CallMethodWithParameterAction)sender;

            CallMethodWithParameterAction.UpdateMethodDescriptors();
        }