I am trying to style the GridViewCheckBox in my application, but I can't seem to get the GridViewCheckBox style to take effect. I would like to show the CheckBox without a box around it (just the check or no check).
Using Blend, this is what I got for a style:
I also see there is a class for the GridViewCheckBoxColumn, but I have been unsuccessful in changing the style template of that either.
How can I style the checkbox?
Thanks.
Using Blend, this is what I got for a style:
<
ResourceDictionary
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<!-- Resource dictionary entries should be defined here. -->
<
Style
TargetType
=
"{x:Type telerik:GridViewCheckBox}"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:GridViewCheckBox}"
>
<
Grid
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
Width
=
"13"
Height
=
"13"
>
<
Grid
Margin
=
"0"
>
<
Path
x:Name
=
"IndeterminatePath"
Stretch
=
"Fill"
Stroke
=
"#FF8D8D8D"
StrokeThickness
=
"1.5"
HorizontalAlignment
=
"Center"
Margin
=
"0"
VerticalAlignment
=
"Center"
Width
=
"7"
Height
=
"7"
Visibility
=
"Collapsed"
Data
=
"M14.708333,144.5L20.667,144.5"
/>
<
Path
x:Name
=
"CheckedPath"
Stretch
=
"Fill"
Stroke
=
"#FF8D8D8D"
StrokeThickness
=
"1.5"
HorizontalAlignment
=
"Center"
Margin
=
"0"
VerticalAlignment
=
"Center"
Visibility
=
"Collapsed"
Data
=
"M32.376187,77.162509L35.056467,80.095277 40.075451,70.02144"
/>
</
Grid
>
</
Grid
>
<
ControlTemplate.Triggers
>
<
Trigger
Property
=
"IsChecked"
Value
=
"True"
>
<
Setter
Property
=
"Visibility"
TargetName
=
"CheckedPath"
Value
=
"Visible"
/>
</
Trigger
>
<
Trigger
Property
=
"IsThreeState"
Value
=
"True"
>
<
Setter
Property
=
"Visibility"
TargetName
=
"IndeterminatePath"
Value
=
"Visible"
/>
</
Trigger
>
</
ControlTemplate.Triggers
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
ResourceDictionary
>
I also see there is a class for the GridViewCheckBoxColumn, but I have been unsuccessful in changing the style template of that either.
How can I style the checkbox?
Thanks.