Hello, I’m trying to retrieve the container where a custom Panel is docked.
Panels.PanelDockBar(typeof(MyCustomPanel))
always returns null
, even if the given panel is actually docked in a container.
Does PanelDockBar work for custom panels?
To provide a little context: what I want to achieve is to show a custom panel, if some plugin data is processed while reading a file being opened. The panel should:
- Be opened as a floating panel if it is not already docked somewhere (this is easily achieved with
Panels.OpenPanel(...)
) - Be set as selected tab in its containing docking bar otherwise (how can I do that?)
Thanks for any ideas.
– Paolo