12345678910111213141516171819202122232425262728293031323334353637383940 |
- <ResourceDictionary xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:dmc="clr-namespace:Dock.Model.Controls;assembly=Dock.Model">
- <Design.PreviewWith>
- <Border>
- <PinnedDockControl />
- </Border>
- </Design.PreviewWith>
- <ControlTheme x:Key="{x:Type PinnedDockControl}" TargetType="PinnedDockControl">
- <Setter Property="PinnedDockAlignment" Value="{CompiledBinding PinnedDock.Alignment}" x:DataType="dmc:IRootDock" />
- <Setter Property="Template">
- <ControlTemplate>
- <Grid Name="PART_PinnedDockGrid"
- IsVisible="{Binding !PinnedDock.IsEmpty, FallbackValue=False}"
- x:DataType="dmc:IRootDock"
- x:CompileBindings="True">
- <ContentControl Content="{Binding PinnedDock}" Name="PART_PinnedDock">
- <ContentControl.Styles>
- <Style Selector="ToolDockControl">
- <Setter Property="Background">
- <MultiBinding Converter="{x:Static EitherNotNullConverter.Instance}">
- <CompiledBinding Path="$parent[Window].Background" />
- <CompiledBinding Path="$parent[Window].TransparencyBackgroundFallback" />
- </MultiBinding>
- </Setter>
- </Style>
- <Style Selector="ToolControl">
- <Setter Property="IsHitTestVisible" Value="{CompiledBinding !$parent[DockControl].IsDraggingDock}" />
- </Style>
- </ContentControl.Styles>
- </ContentControl>
- <GridSplitter Width="5" Grid.Column="1" Grid.Row="1" Background="Transparent" />
- </Grid>
- </ControlTemplate>
- </Setter>
- </ControlTheme>
- </ResourceDictionary>
|