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,
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.
I have been looking into your question. Currently the best solution to your issue, that I can suggest is to change the default style of the TabPaneHeader as in the sample application I have attached in one of my previous posts.
Please do not hesitate to let me know if you have any further questions on this matter.
Once i launch the application and its running,i should be able to hide and un-hide the new horizontal tab group and new vertical tab group. can we modify the default settings while application is running?
Say i have two clicks, one named "Hide" and other "Un-Hide", when user click on hide, i should be able to hide these options "Docking", "Floating", new horizontal tab group and new vertical tab group. Click on Un-hide, all these options should be visible to the user.
I have been looking into your requirement and have modified the sample application for you. In the default style for the TabPaneHeader I have added one more item. Using it you can disable other items in the XamContextMenu. In the sample application is shown how you can disable the "New Horizontal Tab Group". You can disable the other items , that you desire.
If you want to enable the items I can suggest to add one more item in the XamContextMenu, that would set the IsEnabled property of the XamMenuItems to false.
Please find the modified sample application attached and feel free to let me know if you have any further questions on this matter.
Can you please provide the sample of WPF application ? . The sample shared by you is a silverlight project which needs silverlight assemblies which i dont have.
Regards,
Chandrashekar
I got the way to do this. Thanks for your support
Thank you for the feedback. I am glad, that you have found a solution to your issue.