示例#1
0
        void onGeneralSettingsCommand(IUICommand command)
        {
            settingsPopup = setupSettings(settingsPopup);
            SettingsFlyout.StandardFlyout generalpane = new SettingsFlyout.StandardFlyout();
            generalpane.Width  = settingsWidth;
            generalpane.Height = windowBounds.Height;
            // Place the SettingsFlyout inside our Popup window.
            settingsPopup.Child = generalpane;

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