public override void ShowHideConfigPanel() { Popup = new DashboardPopup(); Popup.Parent = ((this.Parent as DragCanvas).Parent as ScrollViewer).Parent as Grid; properties = new Controls.GadgetProperties.AberrationDetectionChartProperties(this.DashboardHelper, this, (AberrationDetectionChartParameters)Parameters, StrataGridList); if (DashboardHelper.ResizedWidth != 0 & DashboardHelper.ResizedHeight != 0) { double i_StandardHeight = System.Windows.SystemParameters.PrimaryScreenHeight; //Developer Desktop Width Where the Form is Designed double i_StandardWidth = System.Windows.SystemParameters.PrimaryScreenWidth; ////Developer Desktop Height Where the Form is Designed float f_HeightRatio = new float(); float f_WidthRatio = new float(); f_HeightRatio = (float)((float)DashboardHelper.ResizedHeight / (float)i_StandardHeight); f_WidthRatio = (float)((float)DashboardHelper.ResizedWidth / (float)i_StandardWidth); properties.Height = (Convert.ToInt32(i_StandardHeight * f_HeightRatio)) / 1.07; properties.Width = (Convert.ToInt32(i_StandardWidth * f_WidthRatio)) / 1.07; } else { properties.Width = (System.Windows.SystemParameters.PrimaryScreenWidth / 1.07); properties.Height = (System.Windows.SystemParameters.PrimaryScreenHeight / 1.15); } properties.Cancelled += new EventHandler(properties_Cancelled); properties.ChangesAccepted += new EventHandler(properties_ChangesAccepted); Popup.Content = properties; Popup.Show(); }
protected override void OnNavigatedTo(NavigationEventArgs e) { _messenger.Register <CloseDashboard>(this, _ => DashboardPopup.Hide()); _messenger.Register <NavigatedToOperation>(this, msg => { switch (msg.NavigationMode) { case NavigationMode.New: if (msg.Operation == null) { ContentFrame.Navigate(typeof(ApiInfoPage), SessionManagerVM.CurrentDocument); } else { ContentFrame.Navigate(typeof(SwaggerOperationPage), msg.Operation); } break; case NavigationMode.Back: ContentFrame.GoBack(); break; case NavigationMode.Forward: ContentFrame.GoForward(); break; } OperationsListView.SelectedItem = msg.Operation; }); KeyDown += OnKeyDown; SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; }
public override void ShowHideConfigPanel() { Popup = new DashboardPopup(); Popup.Parent = ((this.Parent as DragCanvas).Parent as ScrollViewer).Parent as Grid; Controls.GadgetProperties.WordCloudProperties properties = new Controls.GadgetProperties.WordCloudProperties(this.DashboardHelper, this, (WordCloudParameters)Parameters); properties.Width = 800; properties.Height = 600; if ((System.Windows.SystemParameters.PrimaryScreenWidth / 1.2) > properties.Width) { properties.Width = (System.Windows.SystemParameters.PrimaryScreenWidth / 1.2); } if ((System.Windows.SystemParameters.PrimaryScreenHeight / 1.2) > properties.Height) { properties.Height = (System.Windows.SystemParameters.PrimaryScreenHeight / 1.2); } properties.Cancelled += new EventHandler(properties_Cancelled); properties.ChangesAccepted += new EventHandler(properties_ChangesAccepted); Popup.Content = properties; Popup.Show(); }
public void GenerateShapeFileChoropleth() { //AddLayer(LayerType.ChoroplethShapeFile); popup = new DashboardPopup(); popup.Parent = LayoutRoot; EpiDashboard.Controls.ChoroplethProperties properties = new EpiDashboard.Controls.ChoroplethProperties(this, myMap); properties.Width = 800; properties.Height = 600; if ((System.Windows.SystemParameters.PrimaryScreenWidth / 1.2) > properties.Width) { properties.Width = (System.Windows.SystemParameters.PrimaryScreenWidth / 1.2); } if ((System.Windows.SystemParameters.PrimaryScreenHeight / 1.2) > properties.Height) { properties.Height = (System.Windows.SystemParameters.PrimaryScreenHeight / 1.2); } properties.Cancelled += new EventHandler(properties_Cancelled); properties.ChangesAccepted += new EventHandler(properties_ChangesAccepted); popup.Content = properties; popup.Show(); }