Beispiel #1
0
		static void ShowPane(DockedPane dockedPane, IPane content, RowDefinition paneRow, SessionSettings.PaneSettings paneSettings) {
			paneRow.MinHeight = 100;
			if (paneSettings.Height > 0 && (paneRow.Height == null || paneRow.Height.Value == 0))
				paneRow.Height = new GridLength(paneSettings.Height, GridUnitType.Pixel);
			dockedPane.Title = content.PaneTitle;
			if (dockedPane.Content != content) {
				var pane = dockedPane.Content;
				if (pane != null)
					pane.Closed();
				dockedPane.Content = content;
			}
			dockedPane.Visibility = Visibility.Visible;
			content.Opened();
		}