How to add close button to Dock Tab?

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

    • Post Options:
    • Link

    Posted 8 May 2024, 11:53 am EST - Updated 9 May 2024, 3:10 am 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 9 May 2024, 5:56 am 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, 10:23 am EST - Updated 9 May 2024, 10: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