Last active
August 29, 2015 14:17
-
-
Save nickdarnell/4cce3c58ef69b63b0939 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Style TargetType="{x:Type Label}"> | |
| <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> | |
| <Setter Property="Background" Value="Transparent"/> | |
| <Setter Property="Padding" Value="5"/> | |
| <Setter Property="HorizontalContentAlignment" Value="Left"/> | |
| <Setter Property="VerticalContentAlignment" Value="Top"/> | |
| <Setter Property="Template"> | |
| <Setter.Value> | |
| <ControlTemplate TargetType="{x:Type Label}"> | |
| <Border SnapsToDevicePixels="true" | |
| Background="{TemplateBinding Background}" | |
| BorderBrush="{TemplateBinding BorderBrush}" | |
| BorderThickness="{TemplateBinding BorderThickness}" | |
| Padding="{TemplateBinding Padding}"> | |
| <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" | |
| VerticalAlignment="{TemplateBinding VerticalContentAlignment}" | |
| SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" | |
| RecognizesAccessKey="True"/> | |
| </Border> | |
| <ControlTemplate.Triggers> | |
| <Trigger Property="IsEnabled" Value="false"> | |
| <Setter Property="Foreground" | |
| Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/> | |
| </Trigger> | |
| </ControlTemplate.Triggers> | |
| </ControlTemplate> | |
| </Setter.Value> | |
| </Setter> | |
| </Style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment