Example #1
0
 private void UINavigationManager_Pressed(Views.UINavigationManager sender, Views.UINavigationButtons buttons)
 {
     if (buttons == Views.UINavigationButtons.Up ||
         buttons == Views.UINavigationButtons.Down ||
         buttons == Views.UINavigationButtons.Right ||
         buttons == Views.UINavigationButtons.Left
         )
     {
         var focused = FocusManager.GetFocusedElement();
         Debug.WriteLine("現在のフォーカス:" + focused?.ToString());
     }
 }
Example #2
0
 private async void UINavigationManager_Pressed(Views.UINavigationManager sender, Views.UINavigationButtons buttons)
 {
     await HohoemaApp.UIDispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         if (buttons == Views.UINavigationButtons.Up ||
             buttons == Views.UINavigationButtons.Down ||
             buttons == Views.UINavigationButtons.Right ||
             buttons == Views.UINavigationButtons.Left
             )
         {
             var focused = FocusManager.GetFocusedElement();
             Debug.WriteLine("現在のフォーカス:" + focused?.ToString());
         }
     });
 }