Dragablz
Dragablz copied to clipboard
Multiple bug fixes & improvements
Some improvements & bug fixes
- Migration to .NET 8
- Fix #132 - Tabs locked in some cases (this requires a .NET version that supports async)
- Feature - Use DependencyObject to bind Parition to reuse for e.g. a dragged out window (works if you set it in the constructor)
<dragablz:InterTabController InterTabClient="{Binding InterTabClient}" Partition="{Binding InterTabPartition }" />
- Fix -
TabEmptiedResponse.DoNothingleaves empty grids when the last tab is closed. To remove them without closing the window, I addedTabEmptiedResponse.CloseLayoutBranch.
public TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
{
return window is MainWindow ? TabEmptiedResponse.CloseLayoutBranch : TabEmptiedResponse.CloseWindowOrLayoutBranch;
}
- Feature - Disable branch consolidation for a TabablzControl via DependencyProperty (e.g. if you have a "main" TabablzControl that is responsible for creating new tab items and you don't want this to get destroyed on the last tab that is dragged out)
<dragablz:TabablzControl ClosingItemCallback="{Binding CloseItemCommand}"
ItemsSource="{Binding TabItems}"
SelectedIndex="{Binding SelectedTabIndex}"
DisableBranchConsolidation="True">
...
</dragablz:TabablzControl
- Upate MahApps resource keys for brushes/colors.