Beispiel #1
0
 private void MainFrame_Navigating(object sender, NavigatingCancelEventArgs e)
 {
     if (ContentFrame.Content != null)
     {
         ShellCommands.Clear();
         MobileShellCommands.Clear();
     }
 }
Beispiel #2
0
 public void HideCommandBars(bool Hide)
 {
     if (Hide)
     {
         ShellCommands.HideItems(addLock: true);
         MobileShellCommands.HideItems(addLock: true);
     }
     else
     {
         ShellCommands.TryShowItems(unlock: true);
         MobileShellCommands.TryShowItems(unlock: true);
     }
 }
Beispiel #3
0
 public Shell AddCommand(ShellCommand command)
 {
     ShellCommands.CreateCommandButton(command);
     MobileShellCommands.CreateCommandButton(command);
     return(this);
 }