public MainWindow() { InitializeComponent(); // set up the trackball var trackball = new Wpf3DTools.Trackball(); trackball.EventSource = background; viewport.Camera.Transform = trackball.Transform; light.Transform = trackball.RotateTransform; }
public MainWindow() { InitializeComponent(); // set up the trackball var trackball = new Wpf3DTools.Trackball(); trackball.EventSource = background; viewport.Camera.Transform = trackball.Transform; light.Transform = trackball.RotateTransform; }