Horizontal Context Menu?

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

    Posted 30 Dec 2014 Link to this post

    Is there a way to position the context menu items horizontally rather than vertically?
  2. Tsvyatko
    Admin
    Tsvyatko avatar
    832 posts

    Posted 01 Jan 2015 Link to this post

    Hello Cindy,

    Thank you for contacting us! By default context menu is displayed only vertical. However, you can easily customize its appearance by applying style for its items template panel:

    <telerikPrimitives:RadContextMenu.ItemsPanel>
        <ItemsPanelTemplate>
            <StackPanel x:Name="ItemsPanel" Orientation="Horizontal" HorizontalAlignment="Center"/>
        </ItemsPanelTemplate>
    </telerikPrimitives:RadContextMenu.ItemsPanel>

    I have prepared sample project demonstrating how to achieve this. In addition, I have modified the template of the menu to prevent stretching it on the screen width. (as I assume this scenario is related to this - http://www.telerik.com/community/forums/change-width-of-contextmenu)

    Regards,
    Tsvyatko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top