1. You add a Flyout like adding a new XAML Page.
SettingsPane.GetForCurrentView().CommandsRequested += DisplaySettingsFlyout;
3. Next add the Event handler to add a command and command action
private void DisplaySettingsFlyout(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args)
{
SettingsCommand cmd = new SettingsCommand("flyoutSample", "Flyout Sample", (x)=>
{
SettingsFlyout1 flyout = new SettingsFlyout1();
flyout.Title = "Flyout Title";
flyout.Show();
});
args.Request.ApplicationCommands.Add(cmd);
}
4. Now if we run the App, and bring up the Settings, we’ll see the “Flyout Sample” command item.