File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 250
250
251
251
<Style x : Key =" MetroDataGridRowHeader"
252
252
TargetType =" {x:Type DataGridRowHeader}" >
253
+ <Setter Property =" HorizontalContentAlignment"
254
+ Value =" Stretch" />
255
+ <Setter Property =" VerticalContentAlignment"
256
+ Value =" Center" />
253
257
<Setter Property =" Background"
254
258
Value =" Transparent" />
255
259
<Setter Property =" BorderBrush"
268
272
Padding =" {TemplateBinding Padding}"
269
273
Margin =" {TemplateBinding Margin}"
270
274
SnapsToDevicePixels =" True" >
271
- <StackPanel Orientation =" Horizontal" >
272
- <ContentPresenter SnapsToDevicePixels =" {TemplateBinding SnapsToDevicePixels}"
273
- VerticalAlignment =" Center" />
274
- </StackPanel >
275
+ <ContentPresenter SnapsToDevicePixels =" {TemplateBinding SnapsToDevicePixels}"
276
+ VerticalAlignment =" {TemplateBinding VerticalContentAlignment}"
277
+ HorizontalAlignment =" {TemplateBinding HorizontalContentAlignment}" />
275
278
</Border >
276
279
<Thumb x : Name =" PART_TopHeaderGripper"
277
280
VerticalAlignment =" Top"
You can’t perform that action at this time.
0 commit comments