added samples
[windows-sources.git] / sdk / samples / WPFSamples / HexSphere / csharp / window1.xaml.cs
blob3eeb7fb58b9f4affa7fe5e8c10fda0831704111e
1 using System;
2 using System.Data;
3 using System.Windows;
4 using System.Windows.Data;
5 using System.Configuration;
6 using System.Windows.Media;
7 using System.Windows.Media.Media3D;
8 using System.Windows.Media.Animation;
9 using System.Windows.Media.Imaging;
10 using System.Reflection;
11 using System.Windows.Controls;
12 using System.Windows.Input;
13 using System.Windows.Threading;
14 using System.IO;
15 using DemoDev;
17 namespace Ribbon
19 /// <summary>
20 /// Interaction logic for Window1.xaml
21 /// </summary>
23 public partial class Window1 : Window
25 public Window1()
27 InitializeComponent();
30 private void OnLoaded(object sender, EventArgs e)
32 // setup trackball for moving the model around
33 _trackball = new Trackball();
34 _trackball.Attach(this);
35 _trackball.Slaves.Add(myViewport3D);
36 _trackball.Enabled = true;
40 #region Events
42 private void OnImage1Animate(object sender, RoutedEventArgs e)
44 Storyboard s;
46 s = (Storyboard)this.FindResource("RotateStoryboard");
47 this.BeginStoryboard(s);
51 #endregion
53 #region Globals
55 Trackball _trackball;
57 #endregion