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

border around buttons with images

5 Answers 294 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
stealthsid
Top achievements
Rank 1
stealthsid asked on 22 May 2008, 07:04 PM
I have a 16x16 png that I am using as the "Image" property of a RadRepeatButton. The problem is that I cannot easily get rid of the blue border that the RadRepeatButton wishes to use.

5 Answers, 1 is accepted

Sort by
0
stealthsid
Top achievements
Rank 1
answered on 22 May 2008, 07:05 PM
Sorry, a bit more detail, I have the button height/width set to 16x16 since that's how big the PNG file is.
0
stealthsid
Top achievements
Rank 1
answered on 22 May 2008, 07:18 PM
Nevermind I appear to have found the answer. Setting the borderPrimitive visibility to collapse using the UI element editor seems to have done the trick.
0
Nikolay
Telerik team
answered on 23 May 2008, 02:01 PM
Hi stealthsid,

You are correct. To hide the border, you should set the Visibility property of the BorderPrimitive to Hidden or Collapsed. I am glad to hear you've achieved the appearance you need.

If you have additional questions, feel free to contact me.

All the best,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Derek
Top achievements
Rank 1
answered on 05 Jun 2013, 06:42 PM
Could you post the code for that?
0
Paul
Telerik team
answered on 10 Jun 2013, 05:23 PM
Hi Derek,

Thank you for writing.

The code you would like to see should look like that:
this.radRepeatButton1.ButtonElement.BorderElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

Hope that helps.

Regards,
Paul
Telerik
RadChart for WinForms is obsolete. Now what?
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
stealthsid
Top achievements
Rank 1
Answers by
stealthsid
Top achievements
Rank 1
Nikolay
Telerik team
Derek
Top achievements
Rank 1
Paul
Telerik team
Share this question
or