void BottomPane_CloseButtonClicked(object sender, EventArgs e) { sessionSettings.BottomPaneSplitterPosition = bottomPaneRow.Height.Value / (bottomPaneRow.Height.Value + textViewRow.Height.Value); bottomPaneRow.MinHeight = 0; bottomPaneRow.Height = new GridLength(0); bottomPane.IsVisible = false; IPane pane = bottomPane.Content as IPane; bottomPane.Content = null; if (pane != null) { pane.Closed(); } }
void TopPane_CloseButtonClicked(object sender, EventArgs e) { sessionSettings.TopPaneSplitterPosition = topPaneRow.Height.Value / (topPaneRow.Height.Value + textViewRow.Height.Value); topPaneRow.MinHeight = 0; topPaneRow.Height = new GridLength(0); topPane.Visibility = Visibility.Collapsed; IPane pane = topPane.Content as IPane; topPane.Content = null; if (pane != null) { pane.Closed(); } }
public void ShowInBottomPane(string title, object content) { bottomPaneRow.MinHeight = 100; if (sessionSettings.BottomPaneSplitterPosition > 0 && sessionSettings.BottomPaneSplitterPosition < 1) { textViewRow.Height = new GridLength(1 - sessionSettings.BottomPaneSplitterPosition, GridUnitType.Star); bottomPaneRow.Height = new GridLength(sessionSettings.BottomPaneSplitterPosition, GridUnitType.Star); } bottomPane.Title = title; if (bottomPane.Content != content) { IPane pane = bottomPane.Content as IPane; if (pane != null) { pane.Closed(); } bottomPane.Content = content; } bottomPane.Visibility = Visibility.Visible; }
public void ShowInBottomPane(string title, object content) { bottomPaneRow.MinHeight = 100; if (sessionSettings.BottomPaneSplitterPosition > 0 && sessionSettings.BottomPaneSplitterPosition < 1) { //Ensure all 3 blocks are in fair conditions NormalizePaneRowHeightValues(topPaneRow, textViewRow); textViewRow.Height = new GridLength(1 - sessionSettings.BottomPaneSplitterPosition, GridUnitType.Star); bottomPaneRow.Height = new GridLength(sessionSettings.BottomPaneSplitterPosition, GridUnitType.Star); } bottomPane.Title = title; if (bottomPane.Content != content) { IPane pane = bottomPane.Content as IPane; if (pane != null) { pane.Closed(); } bottomPane.Content = content; } bottomPane.IsVisible = true; }