//private Point MouseDownLocation; //bool isPressed = false; //public Joystick() { } //private double aileron, throttle; public Sliders(Model.AircraftModel model, ViewModels.JoystickViewModel joystickVM) { InitializeComponent(); this.joystickVM = joystickVM; //Needs to be passed ffrom mainwindow DataContext = joystickVM; Joystick joys = new Joystick(model, joystickVM); joystickSpace.Children.Add(joys); }
public Map(Model.AircraftModel model, ViewModels.MapViewModel mapVM) { InitializeComponent(); this.mapVM = mapVM; DataContext = mapVM; }
//public Joystick() { } public Joystick(Model.AircraftModel model, ViewModels.JoystickViewModel joystickVM) { InitializeComponent(); this.joystickVM = joystickVM; DataContext = joystickVM; }
public DashBoard(Model.AircraftModel model, ViewModels.DashBoardViewModel dashboardVM) { InitializeComponent(); this.dashboardVM = dashboardVM; DataContext = dashboardVM; }