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