Hi! Is it possible to set picture (bitmap icon) to surface of RadButton or to surface of RadRadioButton so that this picture would occupy the entire surface of RadButton or RadRadioButton? And what format (GIF, JPJ, PNG, e.t.c) must have bitmap icon for its placing on RadButton' surface or RadRadioButton' surface?
5 Answers, 1 is accepted
0
Hello Eugene,
You can use a native Image element to display the picture and place it inside the Content of the button. Here is an example:
Or you can set the picture as a Background of the button using an ImageBrush.
I hope this helps.
Regards,
Martin
Telerik
You can use a native Image element to display the picture and place it inside the Content of the button. Here is an example:
<
telerik:RadButton
>
<
telerik:RadButton.Content
>
<
Image
Source
=
"myimage.png"
Stretch
=
"Fill"
/>
</
telerik:RadButton.Content
>
</
telerik:RadButton
>
<
telerik:RadButton
Content
=
"Button"
>
<
telerik:RadButton.Background
>
<
ImageBrush
ImageSource
=
"myimage.png"
/>
</
telerik:RadButton.Background
>
</
telerik:RadButton
>
I hope this helps.
Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0

Eugene
Top achievements
Rank 1
answered on 28 Mar 2016, 11:20 AM
OK, Martin. Thank you. But what about RadRadioButton? Can bitmap icon be placed on surface of RadRadioButton? I'll be be obliged to you for your answer very.
0
Accepted
Hi Eugene,
The same applies also for RadRadioButton. You can use Image or ImageBrush to display the picture.
Regards,
Martin
Telerik
The same applies also for RadRadioButton. You can use Image or ImageBrush to display the picture.
Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0

Eugene
Top achievements
Rank 1
answered on 29 Mar 2016, 10:07 AM
Thank you very much, Martin. Your help supports me greatly.
0

Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 10 Oct 2019, 05:22 AM
is it possible to add gif image in telerik:RadButton
regerds,
ranees