本文整理汇总了C#中Microsoft.Phone.Shell.ApplicationBar.CreateAndAddMenuItem方法的典型用法代码示例。如果您正苦于以下问题:C# ApplicationBar.CreateAndAddMenuItem方法的具体用法?C# ApplicationBar.CreateAndAddMenuItem怎么用?C# ApplicationBar.CreateAndAddMenuItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Phone.Shell.ApplicationBar
的用法示例。
在下文中一共展示了ApplicationBar.CreateAndAddMenuItem方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RefreshAppBar
/// <summary>
/// Refreshes the application bar.
/// </summary>
private void RefreshAppBar()
{
if (ApplicationBar != null)
{
return;
}
// Creates the app bar.
ApplicationBar = new ApplicationBar();
// Adds the savegame menu item.
ApplicationBar.CreateAndAddMenuItem(SaveGameCommand, "save game");
}
示例2: RefreshAppBar
private void RefreshAppBar()
{
ApplicationBar = new ApplicationBar();
ApplicationBar.CreateAndAddMenuItem(ClearHistoryCommand, "clear history");
ApplicationBar.CreateAndAddMenuItem(SyncProvidersCommand, "sync cartridges");
ApplicationBar.CreateAndAddMenuItem(CalibrateCompassCommand, "calibrate compass");
ApplicationBar.CreateAndAddMenuItem(GetHelpCommand, "talk & get support");
}
示例3: RefreshAppBar
/// <summary>
/// Refreshes the application bar.
/// </summary>
private void RefreshAppBar()
{
if (ApplicationBar != null)
{
return;
}
// Creates the app bar.
ApplicationBar = new ApplicationBar();
// Adds the savegame menu item.
ApplicationBar.CreateAndAddMenuItem(SaveGameCommand, "save game");
// Adds the device info menu item.
ApplicationBar.CreateAndAddMenuItem(ShowDeviceInfoCommand, "player+device info");
// Adds the maps menu item.
ApplicationBar.CreateAndAddButton("appbar.map.treasure.png", ShowMapCommand, "map");
// Adds the quick save button.
ApplicationBar.CreateAndAddButton("appbar.save.png", QuickSaveGameCommand, "quick save");
}
示例4: RefreshAppBar
private void RefreshAppBar()
{
ApplicationBar = new ApplicationBar() { Mode = ApplicationBarMode.Minimized };
ApplicationBar.CreateAndAddMenuItem(ClearHistoryCommand, "clear history");
ApplicationBar.CreateAndAddMenuItem(SyncProvidersCommand, "sync cartridges");
ApplicationBar.CreateAndAddMenuItem(ShowDeviceInfoCommand, "device info");
ApplicationBar.CreateAndAddMenuItem(CalibrateCompassCommand, "calibrate compass");
ApplicationBar.CreateAndAddMenuItem(GetHelpCommand, "talk & get support");
ApplicationBar.CreateAndAddMenuItem(SendBugReportCommand, "send bug report");
ApplicationBar.CreateAndAddMenuItem(ClearCacheCommand, "clear cache");
}
示例5: RefreshAppBar
private void RefreshAppBar()
{
ApplicationBar = new ApplicationBar() { Mode = ApplicationBarMode.Minimized };
ApplicationBar.CreateAndAddMenuItem(SyncProvidersCommand, "sync cartridges");
ApplicationBar.CreateAndAddMenuItem(GetHelpCommand, "get support");
ApplicationBar.CreateAndAddMenuItem(ShowSettingsCommand, "settings");
}
示例6: InitAppBar
private void InitAppBar()
{
ApplicationBar = new ApplicationBar() { Mode = ApplicationBarMode.Minimized };
// Adds a button for compass calibration.
ApplicationBar.CreateAndAddMenuItem(CalibrateCompassCommand, "calibrate compass");
}