public MainPage() { InitializeComponent(); // Use a Grid focus helper to allow setting the focus on the MainPage buttons // using the gamepad left and right DPad buttons. m_gridFocusHelper = new GridFocusHelper(ButtonsGrid); this.Loaded += new RoutedEventHandler(MainPage_Loaded); }