I have customized context menu for content pane. These will be display by performing right click on content tab header. I want to disable and enable some of the context menu items (not remove), how do I do this?
Also i want to Disable/Enable the context menu option "new horizontal tab group" and "new vertical tab group". How to do this?
Hello Chandrashekar,
Thank you for your post!
I have been looking into it and it seems, that I am missing something from your scenario. Would you please provide me with some further information about the options from the context menu, that you want to hide? A screenshot would be helpful too.
Thank you for the provided information. Looking forward to hearing from you.
Hi,
based on user permission, i want to disable and enable "New Horizontal Tab Group" and "New Vertical Tab Group". I was able to hide "Docking" and "Floating" options but did not find how to hide "New Horizontal Tab Group" and "New Vertical Tab Group".
Regards,
Chandrashekar
Thank you for the provided information.
I have been looking into it and have created a small sample application for you. In this sample I have a simple XamDockManager with two ContentPanes.
I have also added the default style for the TabPaneHeader. Then in the VisualStates "Siblings", " SiblingsVertical", " SiblingsHorizontal" I am setting the Visibility property of the MenuItems to Collapsed.
Please find the attached sample application and feel free to let me know if you have any further questions on this matter.
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.
Thanks for the sample. I'm looking into the sample application, but few build issues
'TabPaneHeaderToolTipConverter' does not exist in XML namespace 'http://schemas.infragistics.com/xaml/primitives'.
"XamDockManagerLocalizedStrings" does not exist in the namespace "http://schemas.infragistics.com/xaml/primitives".
Can this be done through code ? i mean enable and disable Horizontal/Vertical tab group like below
pane.AllowDocking = true; pane.AllowDockingFloating = false;
I have been looking into your post and it seems that I am missing something from your scenario. Would you please provide me with some additional information you about the functionality you are trying to achieve? Do you want to hide the "New horizontal tab group" and "New vertical tab group" options through code behind?
Thank you for the cooperation. Looking forward to hearing from you.