public Joystick() { InitializeComponent(); mvm = new viewModel.ManualViewModel(); Knob.MouseLeftButtonDown += Knob_MouseLeftButtonDown; Knob.MouseLeftButtonUp += Knob_MouseLeftButtonUp; Knob.MouseMove += Knob_MouseMove; centerKnob = Knob.Resources["CenterKnob"] as Storyboard; }
public Manual() { InitializeComponent(); mvm = new viewModel.ManualViewModel(); this.DataContext = mvm; }