Esempio n. 1
0
        private static void OnEventsToCommandsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var container = GetEventToCommandAdapter(d);

            if (container != null)
            {
                return;
            }

            container = new EventToCommandAdapter((FrameworkElement)d);
            SetEventToCommandAdapter(d, container);
        }
Esempio n. 2
0
 private static void SetEventToCommandAdapter(DependencyObject obj, EventToCommandAdapter value)
 {
     obj.SetValue(EventToCommandAdapterProperty, value);
 }
 private static void SetEventToCommandAdapter(DependencyObject obj, EventToCommandAdapter value)
 {
     obj.SetValue(EventToCommandAdapterProperty, value);
 }
        private static void OnEventsToCommandsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var container = GetEventToCommandAdapter(d);
            if (container != null)
                return;

            container = new EventToCommandAdapter((FrameworkElement)d);
            SetEventToCommandAdapter(d, container);
        }