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
250
WinLabel: Custom borders
posted

Hello,

 Does anyone know if it is possible to have a WinLabel with a border with consists of a single horizontal line south of the text? In general, are custom borders possible? Also, is it possible to change the size of the border?

 Many thanks.

Indika

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Indika,

        You set the BorderStyle to none and use a DrawFilter to draw your own borders. Changing the size of the borders is a little tricky, though, since the text won't know to shift. I imagine one or two pixels would work. Or you could choose a border style that has the size you want. For example, if you want to draw a 2-pixel border, you could use a 3D border style like Raised, then use a DrawFilter to cancel the default border drawing and draw your own.

        For more information on DrawFilters, check out the Infragistics Knowledge Base. There are lots of articles and samples there.  

Children