Example #1
0
        private static void OnUseSnapshotsPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SlidingPanel control = d as SlidingPanel;

            if (control != null && (bool)e.NewValue == false)
            {
                control.SnapshotVisible = false;
            }
        }
Example #2
0
        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;
            }
        }