AdvancedTabControl - Tab close buttons are not visible

Docking/MDI for WPF Forum

Posted 3 years ago by Dirk Zellerfeld
Version: 21.1.1
Platform: .NET 5.0
Environment: Windows 10 (64-bit)
Avatar

In the sample app open AdvancedTabControl styling page. On first one with the new tab button (+ button) change the XAML and set AdvancedTabControl.HasTabCloseButtons to true. Launch sample app and notice that there are no close buttons, even on the selected tab its missing.

<docking:AdvancedTabControl MinHeight="80" HasNewTabButton="True" HasTabCloseButtons="True">

//edit: Nvm, I have to manually set "CanClose" on each tab to true. I think that it should be true by default because "HasTabCloseButtons" is false by default, so by default close buttons are not visible anyway.

[Modified 3 years ago]

Comments (1)

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

We agree, it would be more naturual to have the default value of AdvancedTabItem.CanClose be true since AdvancedTabControl.HasTabCloseButtons is false by default.  We will make that update for the next build.

Going along with that change, we also are going to update AdvancedTabControl.CanTabsCloseOnMiddleClick to be false by default instead of true as it is now.  This will guard against tabs being able to unintentionally close via middle-click due to the CanClose default change.


Actipro Software Support

The latest build of this product (v24.1.3) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.