This is a migrated thread and some comments may be shown as answers.

Radlabel Borderstyle property fixed 3d

1 Answer 280 Views
Label
This is a migrated thread and some comments may be shown as answers.
Ronad Larsen
Top achievements
Rank 1
Ronad Larsen asked on 14 Jun 2010, 01:39 PM

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.

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 15 Jun 2010, 09:52 AM
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.
Tags
Label
Asked by
Ronad Larsen
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or