File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
WPFDevelopers.Net40/Themes
WPFDevelopers.Shared/Styles Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 3809
3809
<Setter Property =" Template" >
3810
3810
<Setter .Value>
3811
3811
<ControlTemplate TargetType =" {x:Type Label}" >
3812
- <Border >
3813
- <ContentPresenter HorizontalAlignment =" {TemplateBinding HorizontalContentAlignment}" VerticalAlignment =" {TemplateBinding VerticalContentAlignment}" RecognizesAccessKey =" True" />
3812
+ <Border Padding = " {TemplateBinding Padding} " Background = " {TemplateBinding Background} " BorderBrush = " {TemplateBinding BorderBrush} " BorderThickness = " {TemplateBinding BorderThickness} " SnapsToDevicePixels = " true " >
3813
+ <ContentPresenter HorizontalAlignment =" {TemplateBinding HorizontalContentAlignment}" VerticalAlignment =" {TemplateBinding VerticalContentAlignment}" RecognizesAccessKey =" True" SnapsToDevicePixels = " {TemplateBinding SnapsToDevicePixels} " />
3814
3814
</Border >
3815
3815
</ControlTemplate >
3816
3816
</Setter .Value>
Original file line number Diff line number Diff line change 16
16
<Setter Property =" Template" >
17
17
<Setter .Value>
18
18
<ControlTemplate TargetType =" {x:Type Label}" >
19
- <Border >
19
+ <Border
20
+ Padding =" {TemplateBinding Padding}"
21
+ Background =" {TemplateBinding Background}"
22
+ BorderBrush =" {TemplateBinding BorderBrush}"
23
+ BorderThickness =" {TemplateBinding BorderThickness}"
24
+ SnapsToDevicePixels =" true" >
20
25
<ContentPresenter
21
26
HorizontalAlignment =" {TemplateBinding HorizontalContentAlignment}"
22
27
VerticalAlignment =" {TemplateBinding VerticalContentAlignment}"
23
- RecognizesAccessKey =" True" />
28
+ RecognizesAccessKey =" True"
29
+ SnapsToDevicePixels =" {TemplateBinding SnapsToDevicePixels}" />
24
30
</Border >
25
31
</ControlTemplate >
26
32
</Setter .Value>
You can’t perform that action at this time.
0 commit comments