Beispiel #1
0
        private static void ModeChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DrawerMode mode  = (DrawerMode)e.NewValue;
            DrawerView _self = d as DrawerView;

            _self.OnModeChanged(mode);
        }
Beispiel #2
0
        private static void PanelHeightChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if ((double)e.OldValue == double.NaN)
            {
                return;
            }
            DrawerView sender = d as DrawerView;

            sender.OnPanelHeightChanged((double)e.OldValue, (double)e.NewValue);
        }