Files
FileManager-UWP/FileManager_UWP/Controls/LabelListControl.xaml
T
2019-04-29 19:54:49 +08:00

45 lines
1.8 KiB
XML

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:FileManager_UWP.Controls">
<Style TargetType="Button" x:Key="LabelButtonStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid x:Name="RootGrid"
CornerRadius="10"
Background="{TemplateBinding Background}"
BorderThickness="1"
BorderBrush="Blue">
<ContentPresenter
x:Name="ContentPresenter"
Padding="4 4 4 4"
/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="local:LabelListControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="local:LabelListControl">
<Button Name="LabelListPresenter">
<Button.Resources>
<ResourceDictionary>
<SolidColorBrush x:Key="ButtonBackground" Color="Transparent"/>
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="Transparent"/>
<SolidColorBrush x:Key="ButtonBorderBrushPointerOver" Color="Transparent"/>
</ResourceDictionary>
</Button.Resources>
<Canvas Name="LabelListCanvas"></Canvas>
</Button>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>