A flyout control is a popup control appear on an event.
The code to create flyout pop-up from Settings Page
args.Request.ApplicationCommands.Add(
new SettingsCommand("settings", "Application Settings",
a =>
{
int width = 500;
_settingsPopup = new Popup();
_settingsPopup.Closed += OnPopupClosed;
Window.Current.Activated += OnWindowActivated;
_settingsPopup.IsLightDismissEnabled = true;
_settingsPopup.Width = width;
_settingsPopup.Height = Window.Current.Bounds.Height;
AppSettingsFlyoutPopup mypane = new AppSettingsFlyoutPopup();
mypane.Width = width;
mypane.Height = Window.Current.Bounds.Height;
_settingsPopup.Child = mypane;
_settingsPopup.SetValue(Canvas.LeftProperty, Window.Current.Bounds.Width - mypane.Width);
_settingsPopup.SetValue(Canvas.TopProperty, 0);
_settingsPopup.IsOpen = true;
this.layout.Opacity = .3;
_settingsPopup.Closed += (e, s) => this.layout.Opacity = 1;
}));
The code to create flyout pop-up from Settings Page
args.Request.ApplicationCommands.Add(
new SettingsCommand("settings", "Application Settings",
a =>
{
int width = 500;
_settingsPopup = new Popup();
_settingsPopup.Closed += OnPopupClosed;
Window.Current.Activated += OnWindowActivated;
_settingsPopup.IsLightDismissEnabled = true;
_settingsPopup.Width = width;
_settingsPopup.Height = Window.Current.Bounds.Height;
AppSettingsFlyoutPopup mypane = new AppSettingsFlyoutPopup();
mypane.Width = width;
mypane.Height = Window.Current.Bounds.Height;
_settingsPopup.Child = mypane;
_settingsPopup.SetValue(Canvas.LeftProperty, Window.Current.Bounds.Width - mypane.Width);
_settingsPopup.SetValue(Canvas.TopProperty, 0);
_settingsPopup.IsOpen = true;
this.layout.Opacity = .3;
_settingsPopup.Closed += (e, s) => this.layout.Opacity = 1;
}));