Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
775
xamribbon disable menu dynamically
posted
<igRibbon:XamRibbon.ApplicationMenu>
                        <igRibbon:ApplicationMenu Image="Images\Icons\logoWOtext-600px.png" Visibility="{Binding MenuItemsVisibility}">
                            <igRibbon:MenuTool Caption="Types" x:Name="MenuTool">
                                    <igRibbon:ButtonTool Content="a" x:Name="a" Command="{Binding aCommand}" />
                                    <igRibbon:ButtonTool Content="b" x:Name="b" Command="{Binding bCommand}" />
                                    <igRibbon:ButtonTool Content="c" x:Name="c" Command="{Binding bCommand}" />
                                </igRibbon:MenuTool>
                            </igRibbon:MenuTool>
                       </igRibbon:ApplicationMenu>
</igRibbon:XamRibbon.ApplicationMenu>
I have a menu items . i want to hide few menu items based on some condition dynamically (logged in person). 
Can you please suggest how can i implement it 
Parents
  • 30945
    Suggested Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been reading through it and I can suggest using the Visibility property of the items of the ApplicationMenu, in order to hide and show them. I have created a sample application for you that demonstrates the approach I have mentioned.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    AppMenuItemHiding.zip
Reply Children
No Data