How to add close button to Dock Tab?

Posted by: rambabu on 8 May 2024, 2:53 am EST

    • Post Options:
    • Link

    Posted 8 May 2024, 2:53 am EST - Updated 8 May 2024, 6:10 pm EST

    In WPF, using Component One Dock tab item, I want to add a Close button to each tab, When we click on the close button, that tab needs to be close.

    Please give me help to resolve this issue.

    Attache mokeup screenshot to impliment.

  • Posted 8 May 2024, 8:56 pm EST

    Hi,

    In order to achieve your requirement, you can set TabItemClose=“InEachTab” in C1DockTabControl.

    Please refer the attached sample for the same: DockingSample.zip

    Regards,

    Nitin

  • Posted 9 May 2024, 1:23 am EST - Updated 9 May 2024, 1:28 am EST

    Thank you Nitin,

    Your suggestion worked to me.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels