private void ManageUserDataClick(object sender, RoutedEventArgs e)
        {
            var mypane = new ManageUserDataFlyout { Width = MainPage.SettingsWidth, Height = MainPage.Current.WindowBounds.Height };

            MainPage.Current.SettingsPopup.Child = mypane;

            MainPage.Current.SettingsPopup.SetValue(Canvas.LeftProperty,
                                    SettingsPane.Edge == SettingsEdgeLocation.Right
                                        ? (MainPage.Current.WindowBounds.Width - MainPage.SettingsWidth)
                                        : 0);
            MainPage.Current.SettingsPopup.SetValue(Canvas.TopProperty, 0);
            MainPage.Current.SettingsPopup.IsOpen = true;
        }
Ejemplo n.º 2
0
        private void ManageUserDataClick(object sender, RoutedEventArgs e)
        {
            var mypane = new ManageUserDataFlyout {
                Width = MainPage.SettingsWidth, Height = MainPage.Current.WindowBounds.Height
            };

            MainPage.Current.SettingsPopup.Child = mypane;

            MainPage.Current.SettingsPopup.SetValue(Canvas.LeftProperty,
                                                    SettingsPane.Edge == SettingsEdgeLocation.Right
                                        ? (MainPage.Current.WindowBounds.Width - MainPage.SettingsWidth)
                                        : 0);
            MainPage.Current.SettingsPopup.SetValue(Canvas.TopProperty, 0);
            MainPage.Current.SettingsPopup.IsOpen = true;
        }