Automatic Resize Behavior for DockBar in WPF Plugin

Hi,

I’ve created a plugin for Rhino using WPF and registered it as a DockBar. Currently, it appears as a panel docked to the left side of the Rhino interface.

I’d like to implement an automatic resize behavior: when the user clicks inside the Rhino viewport, the DockBar would shrink to a smaller width; and when the user clicks on or hovers over the DockBar again, it would return to its original width.

Is this type of behavior possible with a docked DockBar in Rhino?

The size of the panels cannot be set, it’s up to the user to determine their size.

1 Like