Exemplo n.º 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;
                }
            }
        }
Exemplo n.º 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;
                }
            }
        }
Exemplo n.º 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;
                }
            }
        }
Exemplo n.º 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;
                }
            }
        }