Radlabel Borderstyle property fixed 3d

2 posts, 0 answers
  1. Ronad Larsen
    Ronad Larsen avatar
    2 posts
    Member since:
    Sep 2009

    Posted 14 Jun 2010 Link to this post

    We use Telerik and a radLabel. Can anybody tell me how I change the borderstyle to fixed 3d. The current telerik radlabel can only set the border to single, fourinner and a third one. It does not give me the opportunity of using Fixed3d

    How can this be achived.

  2. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 15 Jun 2010 Link to this post

    Hi Ronad Larsen,

    Thank you for contacting us.

    You can easily achieve the appearance of the Fixed3D borderstyle of RadLabel. All you need to do is set the BoxStyle property to FourBorders and assign specific colors to each of the four borders. Here is a sample snippet:
    BorderPrimitive bp = new BorderPrimitive();
    bp = ((BorderPrimitive)(this.radLabel1.LabelElement.Children[1]));
    bp.BoxStyle = BorderBoxStyle.FourBorders;
    bp.BottomColor = Color.White;
    bp.RightColor = Color.White;
    bp.TopColor = Color.FromArgb(160,160,160);
    bp.LeftColor = Color.FromArgb(160, 160, 160);

    Another option you have is to set these properties through applying the appropriate theme. In this case you can use our Visual Style Builder tool which allows you to easily create and modify themes.

    I hope you find this helpful. Do not hesitate to contact me back if you encounter any further issues.

    All the best,
    Boryana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top