Добавлен проект UI
This commit is contained in:
40
Lattice.UI/Themes/Styles/DockAnchorOverlay.xaml
Normal file
40
Lattice.UI/Themes/Styles/DockAnchorOverlay.xaml
Normal 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="" VerticalAlignment="Top"/>
|
||||
<!-- Top -->
|
||||
<FontIcon Glyph="" HorizontalAlignment="Left"/>
|
||||
<!-- Left -->
|
||||
<FontIcon Glyph="" HorizontalAlignment="Right"/>
|
||||
<!-- Right -->
|
||||
<FontIcon Glyph="" VerticalAlignment="Bottom"/>
|
||||
<!-- Bottom -->
|
||||
<FontIcon Glyph="" 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>
|
||||
Reference in New Issue
Block a user