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
1655
Hide Tab label close button
posted

In the xamTabControl control, I am getting two close buttons. One in the TAB label and in the Tab Header label. I wanted to hide the Tab label close button.

Thank you,

Regards,

Arun

Parents
No Data
Reply
  • 54937
    Suggested Answer
    Offline posted

    The close button within the TabItemEx's default template is bound to the ComputedCloseButtonVisibility of the TabItemEx. This property is based on the CloseButtonVisibility property of the TabItemEx (and the TabItemCloseButtonVisibility of the containing xamTabControl if the CloseButtonVisibility is not set on the TabItemEx). If you don't want a close button on a particular tab item, you can set its CloseButtonVisibility to Hidden. Note, if you want the tab to remain closable then you should also set the AllowClosing of the TabItemEx to true. If that property is left unset and you set the CloseButtonVisibility to Hidden then the tab will be consider to not allow closing.

    The close button in the header area of the xamTabControl's default template is collapsed by default and set to visible in a trigger if the ShowTabHeaderCloseButton property is set to true. So if you do not want this close button, you can set that property to false (which is the default value).

Children
No Data