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?
In that case it seems like it might be a little more difficult. I would suggest submitting a feature request for the ability to have access to the floating window form upon creation: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
thing is
during the event, I traced the DockAreaPane object and trying to access the its UIElement object by the following
Assume I have a DockAreaPane object dockArea;
when I call dockArea.Element, it returns null.
Sorry, the event name is InitializePane.
If you have any visible pane, you can get its Element.Control to get the control hosting the pane. Then if you know the pane is floating, you can call FindForm() on the owning control to get the FloatingWindowContainer.
Here is my trouble.
I have the DockAreaPane object, and I know it is floating. How will I able to get the FloatingWindowContainer object that associated with it?
let me ask in this way
For such class:
Public Class FloatingWindowContainer
It has no public constructor, and the class itself is public. So I'm assuming the class is exposed by some method. (Otherwize, why it is public.)
So my question is, which method/property expose this class? or there's none?