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

RadRadialMenuItem.IconContent

2 Answers 153 Views
RadialMenu
This is a migrated thread and some comments may be shown as answers.
TRW
Top achievements
Rank 1
TRW asked on 22 Jul 2015, 11:01 PM
How can I show an image in the RadRadialMenuItem from code?

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 23 Jul 2015, 02:44 PM
Hi Trw,

In order to visualize an Image inside RadRadialMenuItem from code - behind you need to set its IconContent property as shown below:
var item = new RadRadialMenuItem();
item.Header = "Custom Header";
item.IconContent = new Image() { Source = new BitmapImage(new Uri("imageSource.png", UriKind.Relative)) };
 
this.radialMenu.Items.Add(item);

Hopes this helps.

Regards,
Nasko
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
TRW
Top achievements
Rank 1
answered on 23 Jul 2015, 04:28 PM
Thanks Nasko!
Tags
RadialMenu
Asked by
TRW
Top achievements
Rank 1
Answers by
Nasko
Telerik team
TRW
Top achievements
Rank 1
Share this question
or