How to set minimum width of outlook Right Side Pane in Inspector and Explorer window

209 Views Asked by At

I have created a outlook addin using addin-express. When I drag the addin from right pane to bottom pane and reduce its height into 2 digits e.x 40px. and drag it back to right side, the right pane width is getting set to really small value.

To fix this I am setting the Width to a certain value in form resize event handler which works for explorer window. But in Inspector window the right pane width still gets set to a very small value.

Is it a correct way set minimum width for Pane in Resize event handler? If not How to set minimum width of Panes?

1

There are 1 best solutions below

2
Eugene Astafiev On

I'd suggest setting the form region's state by setting the RegionState property for getting it minimized.

enter image description here

Also, you may find the ADXBeforeDrag event of the ADXOLForm class helpful. It is fired before the form is dropped onto another region.

At any point in time, you may get the current layout by using the ExplorerLayout or InspectorLayout properties. Depending on the layout set you may resize your form.