private static void OnUseSnapshotsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SlidingPanel control = d as SlidingPanel; if (control != null && (bool)e.NewValue == false) { control.SnapshotVisible = false; } }
private static void OnMinimizedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SlidingPanel control = d as SlidingPanel; if (control != null) { bool minimized = (bool)e.NewValue; control.SetValuesBasedOnState(minimized); if (control.MinimizedChanged != null) { control.MinimizedChanged(control, minimized); } control.IsAnimating = false; } }