In the application I have a couple of dynamically created dockable control panes which are docked as tabgroup. I need to add a Close functionality in the right click context menu in the caption and add a close button the tab caption like the Visual Studio.
Is there any way to achieve this?
Hello Jeni,
I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.
Thank you for using Infragistics Components.
In this topic it is discussed how to create custom context menu and add it to the Ultra Dock Manager:
http://ko.infragistics.com/community/forums/t/17012.aspx
You can recreate the behavior of the default context menu and add the additional cancel button to it, please see the attached sample.
In order to add close button on the pane itself you could use the AllowClose property located in the Settings property of the DockableControlPane. To do that use code like:
dcpExplorerBar2.Settings.AllowClose = Infragistics.Win.DefaultableBoolean.True;
Please let me know if you have any additional questions.