private static void ModeChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { DrawerMode mode = (DrawerMode)e.NewValue; DrawerView _self = d as DrawerView; _self.OnModeChanged(mode); }
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); }