/// <summary> /// Creates and adds the required GUI elements /// </summary> private void CreateGUI() { // Create the column maps component container ColumnMapsPageContainer = new StackPanelCollapsibleVerticalMenu <UIElement>() { IsOpen = true, Text = "Column configurations", }; // Create the column maps page ColumnMapsPage = new PropertyMapsPage(QueryMap) { AllowVerticalScroll = false }; // Add it to the container ColumnMapsPageContainer.Add(ColumnMapsPage); // Add it to the stack panel ContentStackPanel.Add(ColumnMapsPageContainer); // Create the data grid presenters component container DataGridPresentersComponentContainer = new StackPanelCollapsibleVerticalMenu <UIElement>() { IsOpen = true, Text = "Data grid presenters" }; // Create the data grid presenter maps page DataGridPresenterMapsPage = new DataGridPresenterMapsPage(QueryMap) { AllowVerticalScroll = false }; // Add it to the container DataGridPresentersComponentContainer.Add(DataGridPresenterMapsPage); // Add it to the stack panel ContentStackPanel.Add(DataGridPresentersComponentContainer); }
public void FadeOutContent() { DoubleAnimation fadeInAnimation = new DoubleAnimation(1, 0, new Duration(new TimeSpan(0, 0, 0, 0, 250))); ContentStackPanel.BeginAnimation(OpacityProperty, fadeInAnimation); }