I traced a little bit, seems when the control is at floating state, it is on a control which is called FloatingWindowContain. And it is inheriance from Forms. And the FormBorderStyle is a toolWindow. Thus, by default the floating window does not have maxmize/minimize button.
In my appliciation, I want the default behavier to be the floating window will have the max/min button.
Here is what I did:
at runtime, when a dockable panel is changing to a floating state, I get the floating window control (which is FloatingWindowContain) using FindForm() method and modify the FormBorderStyle to Sizable. The floating window will show the max/min button.
However, is there any cleaner ways to do it?
UltraDockManager
which class has the PaneInitialized?
It doesn't look like there is any virtual method that could be overridden to modify the FloatingWindowContainer upon creation. The only event I see fired after the creation of this class is PaneInitialized, but it only fires once for each pane. You might be able to handle that event and use it for DockAreaPanes with a DockedState of Floating. I'm not entirely sure, but I think a new DockAreaPane will be initialized for each new floating pane, so this might work.
to be more specific, which class instantiated the floatingWindowContainer? Is there any chance for an API user modify the floatingWindowContainer once it is created?
not necessary have an property from dock manager.
I'm wondering, if dock manager expose a method (it can be either virtual protected method or event) that give me a chance to do something (overriding some behavier) about the floatingWindowContainer when it is instantiated.