Bend.MainWindow.BackImage_MouseDown C# (CSharp) Method

BackImage_MouseDown() private method

private BackImage_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void
        private void BackImage_MouseDown(object sender, MouseButtonEventArgs e)
        {
            try
            {
                System.Windows.Media.Animation.Storyboard settingsAnimation = (System.Windows.Media.Animation.Storyboard)FindResource("slideSettingsOut");
                MainWindowGridRotateTransform.CenterX = this.Width / 3;
                MainWindowGridRotateTransform.CenterY = this.Height;
                SettingsGridRotateTransform.CenterX = this.Width / 1.5;
                SettingsGridRotateTransform.CenterY = this.Height;
                settingsAnimation.Begin(this);
            }
            catch
            {
            }
        }