예제 #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());
     }
 }
예제 #2
0
파일: App.xaml.cs 프로젝트: TaoziDB/Hohoema
 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());
         }
     });
 }