Skip to content

Commit

Permalink
Add fallback value
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Nov 12, 2024
1 parent 233ea06 commit 952259d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Dock.Avalonia/Controls/RootDockControl.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
<ToolPinnedControl DockPanel.Dock="Left"
Orientation="Vertical"
Items="{Binding LeftPinnedDockables}"
IsVisible="{Binding !!LeftPinnedDockables.Count}" />
IsVisible="{Binding !!LeftPinnedDockables.Count, FallbackValue={x:False}}" />
<ToolPinnedControl DockPanel.Dock="Right"
Orientation="Vertical"
Items="{Binding RightPinnedDockables}"
IsVisible="{Binding !!RightPinnedDockables.Count}" />
IsVisible="{Binding !!RightPinnedDockables.Count, FallbackValue={x:False}}" />
<ToolPinnedControl DockPanel.Dock="Top"
Orientation="Horizontal"
Items="{Binding TopPinnedDockables}"
IsVisible="{Binding !!TopPinnedDockables.Count}" />
IsVisible="{Binding !!TopPinnedDockables.Count, FallbackValue={x:False}}" />
<ToolPinnedControl DockPanel.Dock="Bottom"
Orientation="Horizontal"
Items="{Binding BottomPinnedDockables}"
IsVisible="{Binding !!BottomPinnedDockables.Count}" />
IsVisible="{Binding !!BottomPinnedDockables.Count, FallbackValue={x:False}}" />
<Panel>
<ContentControl Content="{Binding ActiveDockable}" Name="PART_MainContent" />
<PinnedDockControl />
Expand Down

0 comments on commit 952259d

Please sign in to comment.