Добавлен проект UI
This commit is contained in:
30
Lattice.UI/Themes/Styles/LatticeSplitter.xaml
Normal file
30
Lattice.UI/Themes/Styles/LatticeSplitter.xaml
Normal 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>
|
||||
Reference in New Issue
Block a user