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?
I'd suggest setting the form region's state by setting the
RegionStateproperty for getting it minimized.Also, you may find the
ADXBeforeDragevent 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
ExplorerLayoutorInspectorLayoutproperties. Depending on the layout set you may resize your form.