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
;
20 /// Interaction logic for Window1.xaml
23 public partial class Window1
: Window
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;
42 private void OnImage1Animate(object sender
, RoutedEventArgs e
)
46 s
= (Storyboard
)this.FindResource("RotateStoryboard");
47 this.BeginStoryboard(s
);