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

Is it possible to set picture (bitmap icon) to surface of telerik:RadButton or telerik:RadRadioButton ?

5 Answers 1466 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 27 Mar 2016, 07:25 AM
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

Sort by
0
Martin Ivanov
Telerik team
answered on 28 Mar 2016, 07:33 AM
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:
<telerik:RadButton>
    <telerik:RadButton.Content>
        <Image Source="myimage.png" Stretch="Fill" />
    </telerik:RadButton.Content>
</telerik:RadButton>
Or you can set the picture as a Background of the button using an ImageBrush.
<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
Martin Ivanov
Telerik team
answered on 28 Mar 2016, 11:40 AM
Hi Eugene,

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

Tags
Buttons
Asked by
Eugene
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Eugene
Top achievements
Rank 1
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or