RadMenu bar with image

2 posts, 1 answers
  1. George
    George avatar
    1 posts
    Member since:
    May 2014

    Posted 29 Apr Link to this post

    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

  2. Answer
    Dess
    Admin
    Dess avatar
    1609 posts

    Posted 02 May Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top