Example #1
0
        void onHelpSettingsCommand(IUICommand command)
        {
            helpPopup = setupSettings(helpPopup);
            SettingsFlyout.HelpFlyout helppane = new SettingsFlyout.HelpFlyout();
            helppane.Width  = settingsWidth;
            helppane.Height = windowBounds.Height;
            // Place the SettingsFlyout inside our Popup window.
            helpPopup.Child = helppane;

            // Let's define the location of our Popup.
            helpPopup.SetValue(Canvas.LeftProperty, SettingsPane.Edge == SettingsEdgeLocation.Right ? (windowBounds.Width - settingsWidth) : 0);
            helpPopup.SetValue(Canvas.TopProperty, 0);
            helpPopup.IsOpen = true;
        }
 void onHelpSettingsCommand(IUICommand command)
 {
     helpPopup = setupSettings(helpPopup);
     SettingsFlyout.HelpFlyout helppane = new SettingsFlyout.HelpFlyout();
     helppane.Width = settingsWidth;
     helppane.Height = windowBounds.Height;
     // Place the SettingsFlyout inside our Popup window.
     helpPopup.Child = helppane;
     
     // Let's define the location of our Popup.
     helpPopup.SetValue(Canvas.LeftProperty, SettingsPane.Edge == SettingsEdgeLocation.Right ? (windowBounds.Width - settingsWidth) : 0);
     helpPopup.SetValue(Canvas.TopProperty, 0);
     helpPopup.IsOpen = true;
 }