Добавлен проект 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,30 @@
<?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">
<Style TargetType="local:LatticeSplitter">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:LatticeSplitter">
<Grid Background="{TemplateBinding Background}">
<!-- PART_Thumb — это невидимая или тонкая область, которую тянет пользователь -->
<Thumb x:Name="PART_Thumb">
<Thumb.Template>
<ControlTemplate TargetType="Thumb">
<Grid Background="Transparent">
<!-- Визуальная линия разделителя -->
<Rectangle Fill="{ThemeResource SystemControlForegroundBaseLowBrush}"
MinWidth="1" MinHeight="1" HorizontalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Thumb.Template>
</Thumb>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>