private void GetLayoutSetup() { //Get the layout setup PanelLayoutSetup setup = new PanelLayoutSetup(); setup.Owner = this; bool?result = setup.ShowDialog(); if (result == true) { LayoutSetupData parameters = (LayoutSetupData)Application.Current.FindResource("LayoutSetup"); if (parameters != null) { LayoutControl.Layout.SheetWidth = parameters.sheetWidth; LayoutControl.Layout.SheetHeight = parameters.sheetHeight; LayoutControl.Layout.SheetsWide = parameters.numSheetsHorizontal; LayoutControl.Layout.SheetsHigh = parameters.numSheetsVertical; LayoutControl.Layout.WindowWidth = Width; LayoutControl.Layout.WindowHeight = Height; } } }
//************************************************** // PanelLayout implementation public PanelLayout() { m_panelSetup = new PanelLayoutSetup(); }