Exemplo n.º 1
0
        public static void ApplicationWiseCommands_CommandsRequested(Windows.UI.ApplicationSettings.SettingsPane sender, Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs args)
        {
            if (!args.Request.ApplicationCommands.Any(c => ((string)c.Id) == "Options"))
            {
                var command = new Windows.UI.ApplicationSettings.SettingsCommand("Options", "Options", x =>
                {
                    var settings = new SettingsPage();

                    settings.Show();
                });
                args.Request.ApplicationCommands.Add(command);
            }

            if (!args.Request.ApplicationCommands.Any(c => ((string)c.Id) == "About"))
            {
                var command = new Windows.UI.ApplicationSettings.SettingsCommand("About", "About", x =>
                {
                    var settings = new AboutSettingsFlyout();
                    settings.Show();
                });
                args.Request.ApplicationCommands.Add(command);
            }
        }
Exemplo n.º 2
0
		public static void ApplicationWiseCommands_CommandsRequested(Windows.UI.ApplicationSettings.SettingsPane sender, Windows.UI.ApplicationSettings.SettingsPaneCommandsRequestedEventArgs args)
		{
			if (!args.Request.ApplicationCommands.Any(c => ((string)c.Id) == "Options"))
			{
				var command = new Windows.UI.ApplicationSettings.SettingsCommand("Options", "Options", x =>
				{
					var settings = new SettingsPage();

					settings.Show();
				});
				args.Request.ApplicationCommands.Add(command);
			}

			if (!args.Request.ApplicationCommands.Any(c => ((string)c.Id) == "About"))
			{
				var command = new Windows.UI.ApplicationSettings.SettingsCommand("About", "About", x =>
				{
					var settings = new AboutSettingsFlyout();
					settings.Show();
				});
				args.Request.ApplicationCommands.Add(command);
			}
		}