private void toggleButton_Unchecked(object sender, RoutedEventArgs e)
        {
            DoubleAnimation animate = new DoubleAnimation();

            animate.To       = 0;
            animate.Duration = new Duration(TimeSpan.FromMilliseconds(100.0));

            LayoutRootRenderRotateTransform.BeginAnimation(RotateTransform.AngleProperty, animate);
            UpdateSettings();
        }
        private void RotateButton_Click(object sender, RoutedEventArgs e)
        {
            if (playerMode)
            {
                rotation += 90.0;
                DoubleAnimation animate = new DoubleAnimation();
                animate.To       = rotation;
                animate.Duration = new Duration(TimeSpan.FromMilliseconds(100.0));

                LayoutRootRenderRotateTransform.BeginAnimation(RotateTransform.AngleProperty, animate);
            }
        }