Beispiel #1
0
        private void SubtitlesIcon_MouseUp(object sender, MouseButtonEventArgs e)
        {
            RightPanel.Visibility = Hider.Visibility = Visibility.Visible;
            var sb = ((Storyboard)FindResource("OpacityUp"));

            sb.Begin(RightPanel);
            ThicknessAnimation thicc = new ThicknessAnimation(new Thickness(0), new TimeSpan(0, 0, 0, 0, 300));

            RightPanel.BeginAnimation(MarginProperty, thicc);
        }
Beispiel #2
0
        private void HideSideBar_MouseUp(object sender, MouseButtonEventArgs e)
        {
            var sb = ((Storyboard)FindResource("OpacityDown")).Clone();

            sb.Completed += (s, ev) => {
                RightPanel.Visibility = Hider.Visibility = Visibility.Hidden;
            };
            sb.Begin(RightPanel);
            ThicknessAnimation thicc = new ThicknessAnimation(new Thickness(0, 0, -250, 0), new TimeSpan(0, 0, 0, 0, 300));

            RightPanel.BeginAnimation(MarginProperty, thicc);
        }