This question is locked. New answers and comments are not allowed.
Hi Guys!
As I decided to switch to the Metro Theme I wanted to change the HeaderCellStyle of the RadGridView and now I struggle with the following problem:
I want a border with thickness 1 around each header cell. Therefore I adapted the style but to my confusion it seems
that the border is not constant as declared. Some cells have a thicker right (or left) border than other cells.
I tried to modify the ControlTemplate as well and figured out that there is only one border (x:name=GridViewHeaderCell) who seems to cause this problem.
This is my custom style (in addition to the style declared in the metro theme):
As I decided to switch to the Metro Theme I wanted to change the HeaderCellStyle of the RadGridView and now I struggle with the following problem:
I want a border with thickness 1 around each header cell. Therefore I adapted the style but to my confusion it seems
that the border is not constant as declared. Some cells have a thicker right (or left) border than other cells.
I tried to modify the ControlTemplate as well and figured out that there is only one border (x:name=GridViewHeaderCell) who seems to cause this problem.
This is my custom style (in addition to the style declared in the metro theme):
Is there a way to fix this problem? Thanks in advance, Andi P.S.: Attached you can find a screenshot describing this problem. (I removed everything from the ControlTemplate except that border)<
Style
TargetType
=
"telerik:GridViewHeaderCell"
>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource MainBrush}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource AccentBrush}"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource StrongBrush}"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"1,1,1,1"
/>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Padding"
Value
=
"0"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
</
Style
>