Beispiel #1
0
        private static void OnDelayTimePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DataGridPopupController controller = d as DataGridPopupController;

            if (e.NewValue != null)
            {
                controller.delayDispatcherTimer.Interval = (TimeSpan)e.NewValue;
            }
        }
Beispiel #2
0
        private static void OnPopupViewPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DataGridPopupController controller = d as DataGridPopupController;

            if (e.OldValue != null)
            {
                controller.SetupPopup(e.OldValue as Popup, false);
            }

            if (e.NewValue != null)
            {
                controller.SetupPopup(e.NewValue as Popup, true);
            }
        }
Beispiel #3
0
 public static void SetController(DependencyObject obj, DataGridPopupController value)
 {
     obj.SetValue(ControllerProperty, value);
 }