Добавлен проект UI

This commit is contained in:
2026-01-07 22:33:42 +03:00
parent b6de0543b7
commit ca5d912c9c
21 changed files with 1188 additions and 4 deletions

View File

@@ -0,0 +1,40 @@
<?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.Primitives">
<Style TargetType="local:DockAnchorOverlay">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:DockAnchorOverlay">
<Canvas x:Name="OverlayCanvas" Background="Transparent">
<!-- Центральный "ромб" с кнопками направлений -->
<Grid x:Name="AnchorGroup" Width="120" Height="120">
<!-- Используем Acrylic или Mica Alt для стиля 2026 -->
<Rectangle Fill="{ThemeResource SystemControlAcrylicElementBrush}"
RadiusX="4" RadiusY="4" Opacity="0.8"/>
<!-- Кнопки-иконки (Left, Right, Top, Bottom, Center) -->
<FontIcon Glyph="&#xE76B;" VerticalAlignment="Top"/>
<!-- Top -->
<FontIcon Glyph="&#xE76C;" HorizontalAlignment="Left"/>
<!-- Left -->
<FontIcon Glyph="&#xE76D;" HorizontalAlignment="Right"/>
<!-- Right -->
<FontIcon Glyph="&#xE76E;" VerticalAlignment="Bottom"/>
<!-- Bottom -->
<FontIcon Glyph="&#xE72D;" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<!-- Center -->
</Grid>
<!-- Превью зоны (синий полупрозрачный прямоугольник) -->
<Rectangle x:Name="DropPreview" Fill="{ThemeResource SystemAccentColorLight3}"
Opacity="0.4" Visibility="Collapsed"/>
</Canvas>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>