Is it possible to make a SidePanelUserControl autosize?

I have a SidePanelUserControl plugin. Within it there is a flowLayoutPanel, and within the flowLayoutPanel there are other controls.

I can add and grow the controls in the flowLayoutPanel and it will grow (setting the autosize=true, autosizemode properties) but the SidePanelUserControl does not grow (even though it has the autosize=true and autosizemode properties set).

Should the SidePanelUserControl be able to autosize in the SidePanel?

Running 2017R2 Smart Client.

Before I go deeper with this question I have a quick question: Are you working with a win forms user control or a WPF user control?

(In MIP SDK 2017R3 and newer the plugin template will be using the WPF version.)

Hi Bo,

It’s Win forms. Based on many of the samples in the 2017R2 sdk

The Win forms based side panel plugin is made at load time and never resized.

I did an experiment with a WPF based side panel plugin and with this one I was able to change the height. Width cannot be changed but this is inherited from the Smart Client design.

All the samples that use a side panel plugin are using the win forms based plugin. Because of this try to use the template and create a new plugin, this will show you a WPF based side panel plugin.

PS. In MIP SDK 2017R3 and newer the plugin template will be using the WPF version, so you must upgrade if you currently have MIP SDK 2017R2. It is recommended to use the newest available MIP SDK when developing.