Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Floating form border and caption styles
posted

Is there a way to change how the borders on a floating pane appear, specifically, how to hide/make transparent. Also is there a way to make a floating form appear more like a regular window and not like a tool window (ie full size caption bar). Thanks

 Christiaan

Parents
No Data
Reply
  • 44743
    posted

    There are no properties to change the border style, but you can use a draw filter to hide the borders. If you have never used draw filters before, the following help article has a brief overview: http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Win_Draw_Filter.html.

    In your GetPhasesToFilter implementation, if the drawParams.Element is a FloatingWindowContainerUIElement, return BeforeDrawBorders. In your DrawElement implementation, return True to prevent the borders from drawing. This will only make the borders transparent though, the user will probably still be able to grab where the border was and resize the pane. Also, you will probably see the floating Form's control color show through where the borders were so you might want to go to the drawParams.Element.Control in your DrawElement implementation and set the BackColor to Transparent.

    Setting the FormBorderStyle of the pane windows is not supported, but you can submit a feature request for this here: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.

Children