private void btn_Rotate(object sender, RoutedEventArgs e)
        {
            Button button = (Button)sender;

            if (button.Name == "btn_up")
            {
                ViewModel3d.Rotate("x", '+', 45);
            }

            else if (button.Name == "btn_upJump")
            {
                ViewModel3d.Rotate("x", '+', 90);
            }

            else if (button.Name == "btn_left")
            {
                ViewModel3d.Rotate("y", '-', 45);
            }

            else if (button.Name == "btn_leftJump")
            {
                ViewModel3d.Rotate("y", '-', 90);
            }
        }
 private void btn_start_Click(object sender, RoutedEventArgs e)
 {
     ViewModel3d.Start();
 }
 private void btn_ResetView_Click(object sender, RoutedEventArgs e)
 {
     ViewModel3d.Reset();
 }
 public CubeControll()
 {
     InitializeComponent();
     ViewModel3d.CreateModel(ref viewPort3d);
 }