| 1 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:local="clr-namespace:UI.Controls.Base"> |
| 4 | <Style TargetType="{x:Type local:Text}"> |
| 5 | <Setter Property="SnapsToDevicePixels" |
| 6 | Value="true" /> |
| 7 | <Setter Property="Template"> |
| 8 | <Setter.Value> |
| 9 | <ControlTemplate TargetType="{x:Type local:Text}"> |
| 10 | <Border SnapsToDevicePixels="True" Background="{TemplateBinding Background}"> |
| 11 | <TextBlock Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Text}}, Path=Content_}"/> |
| 12 | </Border> |
| 13 | |
| 14 | </ControlTemplate> |
| 15 | </Setter.Value> |
| 16 | </Setter> |
| 17 | </Style> |
| 18 | </ResourceDictionary> |