Hello, I want skin the checkbox, but the text don't show:
<Style TargetType="{x:Type CheckBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
...
<TextBlock Text="{TemplateBinding ContentPresenter.Content}" TextWrapping="Wrap"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}" Margin="{TemplateBinding Padding}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
But the "{TemplateBinding ContentPresenter.Content}" return empty.
What is the property to binding ?
↧