Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Menu > (HELP) RadMenuItem Icon in code behind

Not answered (HELP) RadMenuItem Icon in code behind

Feed from this thread
  • quan avatar

    Posted on Nov 13, 2011 (permalink)

    I want to creat a radmenuitem with code behind but I can't show the icon for it
    RadMenuItem menu = CreateMenu("abc");
    menu.Header = "abc";
    Image img = new Image();
    img.Source = new BitmapImage(new Uri(@"D:\desktop\c.jpg", UriKind.Relative));
    img.Width = 14; img.Height=14;
    menu.Icon = img;
    But it doesn't work, I can't see the icon. Help me, Please.

    Reply

  • quan avatar

    Posted on Nov 14, 2011 (permalink)

    help me, please

    Reply

  • Konstantina Konstantina admin's avatar

    Posted on Nov 16, 2011 (permalink)

    Hi Quan,

    Could you please check again the path of the UriSource. I tested your code and it seems to work as expected.
    If you still experience the issue please send us your project, so that we can run it here locally and look for the source of the problem.

    Best wishes,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Menu > (HELP) RadMenuItem Icon in code behind
Related resources for "(HELP) RadMenuItem Icon in code behind"

Silverlight Menu Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]