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
1310
Close button in the the caption
posted

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?

  • 23930
    Offline posted

    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.

  • 23930
    Offline posted

    Hello Jeni,

    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.

    WD_PinnedTabs.zip