예제 #1
0
        private static void OnCommandParameterChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EventToCommandBehavior thisctrl = (EventToCommandBehavior)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                if (newValue != null)
                {
                    thisctrl.CommandParameter = newValue != null ? newValue : null;
                }
            }
        }
예제 #2
0
        private static void OnEventNameChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EventToCommandBehavior thisctrl = (EventToCommandBehavior)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                if (newValue != null)
                {
                    thisctrl.EventName = newValue != null ? (string)newValue : string.Empty;
                }
            }
        }
예제 #3
0
        private static void OnCommandChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EventToCommandBehavior thisctrl = (EventToCommandBehavior)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                if (newValue != null)
                {
                    thisctrl.Command = (ICommand)newValue;
                }
            }
        }
예제 #4
0
        private static void OnEventArgsConverterChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EventToCommandBehavior thisctrl = (EventToCommandBehavior)bindable;

            if (thisctrl != null && oldValue != newValue)
            {
                if (newValue != null)
                {
                    thisctrl.EventArgsConverter = newValue != null ? (IValueConverter)newValue : null;
                }
            }
        }