private void OnAboutCommand(IUICommand command) { SettingsPopup = new Popup(); SettingsPopup.IsLightDismissEnabled = true; SettingsPopup.Width = SettingsWidth; SettingsPopup.Height = WindowBounds.Height; SettingsPopup.ChildTransitions = new TransitionCollection { new PaneThemeTransition { Edge = (SettingsPane.Edge == SettingsEdgeLocation.Right) ? EdgeTransitionLocation.Right : EdgeTransitionLocation.Left } }; var mypane = new AboutFlyout { Width = SettingsWidth, Height = WindowBounds.Height }; SettingsPopup.Child = mypane; SettingsPopup.SetValue(Canvas.LeftProperty, SettingsPane.Edge == SettingsEdgeLocation.Right ? (WindowBounds.Width - SettingsWidth) : 0); SettingsPopup.SetValue(Canvas.TopProperty, 0); SettingsPopup.IsOpen = true; }