Is it possible to hide the caption/border for docked windows using the DrawFilter, but still allow them to undock the control (and if it's floating, the display the caption/border again)?
I tried implementing IUIElementDrawFilter, but when I set "UltraDockManager.DrawFilter = this", and in "GetPhasesToFilter" i check for if the "drawParams.Element is DockableWindowUIElement", and if so set "BeforeDrawBorders", but nothing happens. And if I check for "FloatingWindowControlUIElement", "DrawElement" doesn't even get called.
By returning values from GetPhasesToFilter, you are not actually affecting the drawing of elements. You are just indictaing which phases on which you would like to get you DrawElement implementation called. So in your DrawElement logic, you could just return True for the BeforeDrawBorders phase to prevent the normal border drawing logic from being used.