AdvancedTabControl - Tab close buttons are not visible

Docking/MDI for WPF Forum

The latest build of this product (v21.1.1) was released 3 months ago, which was before this thread was created.
Posted 12 days 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 12 days ago]

Comments (1)

Posted 12 days 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

Add Comment

Please log in to a validated account to post comments.