Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Lock the size of a DockablePaneBase
posted

I am working on an application which uses an UltraDockManager to get a DockablePaneBase and displays it.  (See the code snippet below.)  How would I keep this pane from being resized?  So far, my solution is to set the MaximumSize and MinimumSize properties equal to the ActualSize.  Is there a better way to do this?

 

DockablePaneBase dockablePaneChartOptions = this.ultraDockManager.PaneFromKey(PaneKeyChartOptions);

...

dockablePaneChartOptions.MinimumSize = dockablePaneChartOptions.ActualSize;

dockablePaneChartOptions.MaximumSize = dockablePaneChartOptions.ActualSize;           dockablePaneChartOptions.Show();