When I launch the app from my Visual Studio on the XBOX console using the "Remote Machine" method I'm able to do the navigation using the Gamepad and able to get the "KeyDown" events for the same. But when I close the app and launch it again from the "Games and Apps" tab and once the app is loaded totally and then if I try to do navigation using the Gamepad I'm not able to do the navigation and also the "keyDown" events are not getting triggered at all.
I need to click on the "XBOX button" on the controller and close the Side menu then I'll be able to navigate properly without any issue. But why I'm not able to do navigation once the app is launched.
I thought it might be due to some focus issue so I've added the respective code but still facing the same issue. It's kind of a blocked situation for the user since he'll not be able to exit the application even on clicking the B button.
mainpage.xaml.cs:
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
MyWebView.Focus(FocusState.Programmatic);
}
for the webview I'm using this code as below.
mainpage.xaml:
<Grid>
<WebView x:Name="MyWebView"
Source="...">
</WebView>
</Grid>