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

Displaying the Image Alone in a radButton

7 Answers 399 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 05 Jun 2013, 01:58 PM
Is there a way to have a radButton only display as an image? I have an image that i would like to use as a button alone, but I can't seem to get the radButton borders to go away and the radButton background color to become transparent. 

Help?

7 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Jun 2013, 06:03 AM
Hello Derek,

Thank you for writing.

Here is how you can hide the border and the fill of the button:
radButton1.ButtonElement.ShowBorder = false;
radButton1.ButtonElement.ButtonFillElement.Visibility = ElementVisibility.Collapsed;

I hope this helps.
 

Regards,
Stefan
Telerik
RadChart for WinForms is obsolete. Now what?
0
Trey
Top achievements
Rank 2
answered on 12 Jan 2015, 10:13 PM
What about for radDropDownButton??
0
Hristo
Telerik team
answered on 15 Jan 2015, 05:44 PM
Hello Trey,

Thank you for writing.

You could reach the same effect for a RadDropDownButton element by setting the following properties:
BorderPrimitive borderEl = this.radDropDownButton2.DropDownButtonElement.BorderElement as BorderPrimitive;
borderEl.ShouldPaint = false;
this.radDropDownButton1.DropDownButtonElement.ActionButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
this.radDropDownButton1.DropDownButtonElement.ArrowButton.Fill.Visibility = ElementVisibility.Collapsed;

If you would like to also hide the arrow, you should additionally set the ShowArrow ‚Äčproperty to false.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sirisha
Top achievements
Rank 1
answered on 06 Nov 2015, 12:20 PM

Hi Hristo,

 

I am trying to  display image ‚Äčalonne on RadDropDownButton.

I am using 2014 Q2 dlls. I don't see DropDownButtonElement property on RadDropDownButton instance mentioned in the earlier reply.

Could you please help me here?

 

Regards,

Sirisha

0
Hristo
Telerik team
answered on 06 Nov 2015, 02:26 PM
Hi Sirisha,

Thank you for writing.

The RadDropDownButtonElement is a RadElement descendant and as such is an integral part of how our controls are built, more on TPF: Telerik Presentation Framework

The element is part of the 2014 version, it, however, cannot be accessed from the properties tab in the designer of Visual Studio. If you would like to perform modifications at design-time, you would need to use our Element Hierarchy Editor. For reference, I am also sending you a screenshot.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Sirisha
Top achievements
Rank 1
answered on 09 Nov 2015, 04:06 AM

Hi Hristo,

 

I am referring to WPF telerik DropDownButton contrrol. Is Hierarchy Editor available for these controls also?

 

Regards,

Sirisha

0
Hristo
Telerik team
answered on 10 Nov 2015, 01:29 PM
Hello Sirisha,

Thank you for writing back.

This forum thread considers Telerik UI for WinForms, please either post your question to the UI for WPF forum or open up a support ticket specifying UI for WPF as your product.

Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Derek
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Trey
Top achievements
Rank 2
Hristo
Telerik team
Sirisha
Top achievements
Rank 1
Share this question
or