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();
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello,
DockableControlPane object has a PaneSettings object, which determine custom settings for this DockableControlPane object. PaneSettings object has a property AllowResize, which Returns or sets whether the pane may be resized. So if you want to prevent user to be able to resize some pane you should set AllowResize to false. You could use code like:
ultraDockManager1.PaneFromControl(Control).Settings.AllowClose = Infragistics.Win.DefaultableBoolean.False;
More information about this property you could find on the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinDock.v11.2~Infragistics.Win.UltraWinDock.PaneSettings~AllowResize.html
Please let me know if you have any further questions.