Files
HandyControl/HandyControlDemo/Resources/Themes/Styles/Label.xaml
T
2018-09-11 12:00:52 +08:00

19 lines
917 B
XML

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="LabelInfo" TargetType="{x:Type Label}">
<Setter Property="Margin" Value="0,32,16,0"></Setter>
<Setter Property="HorizontalAlignment" Value="Left"></Setter>
<Setter Property="Background" Value="{DynamicResource PrimaryBrush}"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Label}">
<Border CornerRadius="4" Background="{TemplateBinding Background}">
<TextBlock Foreground="White" Margin="10,6" Text="{TemplateBinding Content}"></TextBlock>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>