Beispiel #1
0
 public NestedDrawerPage()
 {
     InitializeComponent();
     Tizen.TV.UIControls.Forms.InputEvents.GetEventHandlers(MainMenuList).Add(
         new Tizen.TV.UIControls.Forms.RemoteKeyHandler((t) => {
         if (t.KeyName == Tizen.TV.UIControls.Forms.RemoteControlKeyNames.Right)
         {
             SubMenuList.Focus();
             t.Handled = true;
         }
     },
                                                        Tizen.TV.UIControls.Forms.RemoteControlKeyTypes.KeyDown));
     Tizen.TV.UIControls.Forms.InputEvents.GetEventHandlers(SubMenuList).Add(
         new Tizen.TV.UIControls.Forms.RemoteKeyHandler((t) => {
         if (t.KeyName == Tizen.TV.UIControls.Forms.RemoteControlKeyNames.Left)
         {
             MainMenuList.Focus();
             t.Handled = true;
         }
     },
                                                        Tizen.TV.UIControls.Forms.RemoteControlKeyTypes.KeyDown));
     FocusHolder.Focused += (s, e) =>
     {
         SubDrawer.IsOpen = false;
     };
     FocusHolder.Unfocused += (s, e) =>
     {
         SubDrawer.IsOpen = true;
     };
 }
Beispiel #2
0
 protected override void OnAppearing()
 {
     MainMenuList.Focus();
 }