// Timer and event
        public MainWindow()
        {
            InitializeComponent();
            myStageControl.Initialize();
            _myStage = myStageControl.Stage;

            _JoyStick = new XGamepadDemo.XBoxJoyStick();
            _JoyStick.Initialize(0);
            _JoyStick.Stage = _myStage;
            timer           = new DispatcherTimer();
            timer.Interval  = new TimeSpan(0, 0, 0, 0, 100);
            timer.Tick     += new EventHandler(OnTick);
            timer.Start();
        }