Close Button in C1TabItem

Posted by: xyzababc9 on 28 November 2020, 1:52 am EST

    • Post Options:
    • Link

    Posted 28 November 2020, 1:52 am EST

    Hi,

    I can able to see Close Button in C1TabItem controltemplate button it is not visible when running the application. I want the Close Buttton should be visible in C1TabItem. Please help me to accomplish this.

    Thanks and Regards.

  • Posted 28 November 2020, 7:33 pm EST

    issue got solved

  • Posted 15 February 2021, 11:29 pm EST

    Hello,

    Can I add an “x” button and also set visibility to Hidden / Collapsed? I found an older discussion how to programatically close a C1TabItem, but I do not understand how to use a custom button.

    https://www.grapecity.com/forums/wpf-edition/how-to-programatically-clo http://customwritingcompany.com

  • Posted 16 February 2021, 11:35 pm EST

    Hi Patrick,

    C1TabControl by default allows us to display/hide close (x) button in C1TabItems by using its TabItemClose property. For example, you can display close button in each tab by setting TabItemClose property to InEachTab as follows:

    
    <c1:C1TabControl x:Name="tabControl" TabItemClose="InEachTab">
    
    </c1:C1TabControl>
    
    

    Please refer to the same from the attached sample. (see C1TabItemClose.zip)

    Best Regards,

    Kartik

    C1TabItemClose.zip

Need extra support?

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

Learn More

Forum Channels