Esempio n. 1
0
 private void SetupMainMenu()
 {
     if (_enterMenuModeHandler == null)
     {
         _enterMenuModeHandler = new KeyboardNavigation.EnterMenuModeEventHandler(OnEnterMenuMode);
         KeyboardNavigation.Current.EnterMenuMode += _enterMenuModeHandler;
     }
 }
Esempio n. 2
0
 private void SetupMainMenu()
 {
     if (_enterMenuModeHandler == null)
     {
         _enterMenuModeHandler = new KeyboardNavigation.EnterMenuModeEventHandler(OnEnterMenuMode);
         (new UIPermission(UIPermissionWindow.AllWindows)).Assert(); //Blessed Assert
         try
         {
             KeyboardNavigation.Current.EnterMenuMode += _enterMenuModeHandler;
         }
         finally
         {
             UIPermission.RevertAssert();
         }
     }
 }
Esempio n. 3
0
  private void SetupMainMenu()
  {
      if (_enterMenuModeHandler == null)
      {
          _enterMenuModeHandler = new KeyboardNavigation.EnterMenuModeEventHandler(OnEnterMenuMode);
          (new UIPermission(UIPermissionWindow.AllWindows)).Assert(); //Blessed Assert
          try
          {
             KeyboardNavigation.Current.EnterMenuMode += _enterMenuModeHandler;
          }
          finally
          {
              UIPermission.RevertAssert();
          }
     }
 }