Does anyone have a Style made for a XamWebMenuItem that doesn't show the full check box, but just shows a Check mark if IsChecked, and nothing if IsChecked is false?
Thanks,Keith
Hi dmTech04
I've attached a full demo file for you. The most important part is replacing the checkbox presenter with this code
<Border Name="HeaderCheckboxPresenter" Width="13" Height="13" Visibility="{TemplateBinding CheckBoxVisibilityResolved}" Margin="6,0,6,0" BorderThickness="1"> <Path DataContext="{TemplateBinding IsChecked}" Name="CheckMark" Width="7" Height="7" Visibility="{Binding Converter={StaticResource CheckBoxStateConverter}}" Stroke="{StaticResource GlyphBrush}" StrokeThickness="2" Data="M 0 0 L 7 7 M 0 7 L 7 0" /> </Border>
Hope this help
Todor
Awesome! Thanks Todor. That saved me a lot of time figuring this out myself. I changed the X to a check mark using this, in case anyone else wants it:<Border Name="HeaderCheckboxPresenter" Width="13" Height="13" Visibility="{TemplateBinding CheckBoxVisibilityResolved}" Margin="6,0,6,0" BorderThickness="1"> <Path DataContext="{TemplateBinding IsChecked}" Name="CheckMark" Stretch="None" Width="10" Height="10" Visibility="{Binding Converter={StaticResource CheckBoxStateConverter}}" Stroke="Black" StrokeThickness="2" Data="M0,4 L4,7 L10,0" /></Border>