Hi all. I'm trying to style a checkbox so that the custom check mark goes outside the border. I normally would make this work by setting a negative margin, but the border of the checkbox constrains the contents, so that only the bit drawn inside
is visible ? This is what I have:
<Style
x:Key="{x:Type
CheckBox}" TargetType="CheckBox">
<Setter
Property="SnapsToDevicePixels" Value="true"/>
<Setter
Property="OverridesDefaultStyle" Value="true"/>
<Setter
Property="Template">
<Setter.Value>
<ControlTemplate
TargetType="CheckBox">
<BulletDecorator
Background="Transparent">
<BulletDecorator.Bullet>
<Border
x:Name="Border"
Width="13"
Height="13"
Margin="-3,-3,3,3"
CornerRadius="0"
Background="Transparent"
BorderThickness="1"
BorderBrush="Black">
<Path
Width="16"
Height="16"
Margin="3,-3,0,0"
x:Name="CheckMark"
SnapsToDev
View Complete Post