Esempio n. 1
0
        //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);
        }
Esempio n. 2
0
        //public Joystick() { }


        public Joystick(Model.AircraftModel model, ViewModels.JoystickViewModel joystickVM)
        {
            InitializeComponent();
            this.joystickVM = joystickVM;
            DataContext     = joystickVM;
        }