Dragablz icon indicating copy to clipboard operation
Dragablz copied to clipboard

Multiple bug fixes & improvements

Open BornToBeRoot opened this issue 1 year ago • 0 comments

Some improvements & bug fixes

  1. Migration to .NET 8
  2. Fix #132 - Tabs locked in some cases (this requires a .NET version that supports async)
  3. 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 }" />
  1. Fix - TabEmptiedResponse.DoNothing leaves empty grids when the last tab is closed. To remove them without closing the window, I added TabEmptiedResponse.CloseLayoutBranch.
public TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
{
    return window is MainWindow ? TabEmptiedResponse.CloseLayoutBranch : TabEmptiedResponse.CloseWindowOrLayoutBranch;
}
  1. 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
  1. Upate MahApps resource keys for brushes/colors.

BornToBeRoot avatar Apr 06 '24 01:04 BornToBeRoot