Menu Alignment Problem

5 posts, 2 answers
  1. Avinash
    Avinash avatar
    31 posts
    Member since:
    May 2015

    Posted 08 Sep 2015 Link to this post

    Sir,
    I have created menu with sub menu.But while i click on menu,the sub menu is opening just right of that menu.I want to open  below and sub menu letter alignment should middle.If you make template Grid Horizontal Alignment="left",then it is opening just below it properly but letter alignment becoming left.I want letter  alignment should be middle.Here i have attached my sample project link .If there is way to solve this,please help me.

     

    https://drive.google.com/a/aisofttech.com/file/d/0Bz9Sv7mmLtkeeFBGTXB1OFVNTnM/view?usp=sharing​

  2. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 08 Sep 2015 Link to this post

    Hi Avinash,

    The project cannot be downloaded from the provided link. Can you please open up a support ticket and attach the sample there? We will be glad to investigate it on our side and provide you with a solution.

    I'm looking forward to hearing from you.

    Regards,
    Kalin
    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. Avinash
    Avinash avatar
    31 posts
    Member since:
    May 2015

    Posted 08 Sep 2015 in reply to Kalin Link to this post

    Please try with this link below-

    https://drive.google.com/file/d/0Bz9Sv7mmLtkeeFBGTXB1OFVNTnM/view?usp=sharing​

  5. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 08 Sep 2015 Link to this post

    Hello Avinash,

    As I can see you are using the native WPF Menu, not RadMenu for the main menu. However if you need to open the submenu right below the clicked MenuItem you would need to change the PlacementTarget of the Popup named PART_Popup inside of the MenuItemTemplate as shown below:

    PlacementTarget="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}}"

    Hope this helps.

    Regards,
    Kalin
    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
  6. Avinash
    Avinash avatar
    31 posts
    Member since:
    May 2015

    Posted 08 Sep 2015 in reply to Kalin Link to this post

    Sir,now menu item is showing according to our requirement.
Back to Top
UI for WPF is Visual Studio 2017 Ready