Files
Lattice/Lattice.UI/Themes/Styles/LatticeDockHost.xaml

33 lines
1.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Lattice.UI.Controls"
xmlns:primitives="using:Lattice.UI.Primitives">
<Style TargetType="local:LatticeDockHost">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:LatticeDockHost">
<!-- Используем Grid, чтобы наложить оверлей ПОВЕРХ контента -->
<Grid x:Name="RootGrid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<!-- 1. Основной слой: Сюда программно рендерятся панели через LayoutPanel -->
<ContentPresenter x:Name="LayoutPresenter"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch" />
<!-- 2. Слой подсказок: Должен быть ниже в списке, чтобы быть выше визуально -->
<!-- Обязательно x:Name="AnchorOverlay", так как C# ищет его по этому имени -->
<primitives:DockAnchorOverlay x:Name="AnchorOverlay"
Visibility="Collapsed"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
IsHitTestVisible="False" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>