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

RadMenu bar with image

1 Answer 90 Views
Menu
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 29 Apr 2016, 04:44 PM

Hello,

Is it possible to put an image on a RadMenu bar, and have it aligned all the way to the right?  You would have your standard menus (File, Edit, Help) on the left, and at the other end place a logo image.

 

Thanks,

George

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 May 2016, 10:36 AM
Hello George,

Thank you for writing.

Here is a sample code snippet demonstrating how to add a menu item with image that is right aligned:
public Form1()
{
    InitializeComponent();
    RadMenuItem item1 = new RadMenuItem();
    item1.Text = "Pin";
    item1.Image = Properties.Resources.pin;
    item1.TextImageRelation = TextImageRelation.TextBeforeImage;
    this.radMenu1.Items.Add(item1);
 
    RadMenuItem item2 = new RadMenuItem();
    item2.Text = "Paste";
    item2.Image = Properties.Resources.paste;
    item2.TextImageRelation = TextImageRelation.TextBeforeImage;
    this.radMenu1.Items.Add(item2);
}

I hope this information helps. Should you have further questions I would be glad to help.

  Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Menu
Asked by
George
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or