RadRadialMenuItem.IconContent

3 posts, 1 answers
  1. TRW
    TRW avatar
    4 posts
    Member since:
    Dec 2011

    Posted 22 Jul 2015 Link to this post

    How can I show an image in the RadRadialMenuItem from code?
  2. Answer
    Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 23 Jul 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. TRW
    TRW avatar
    4 posts
    Member since:
    Dec 2011

    Posted 23 Jul 2015 in reply to Nasko Link to this post

    Thanks Nasko!
Back to Top