Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7432285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:26:03+00:00 2026-05-29T09:26:03+00:00

I have created a checkbox in WPF it works but looks really ugly the

  • 0

I have created a checkbox in WPF it works but looks really ugly the tick in the box is very jagged. I have tried to set the RenderOptions.EdgeMode to aliased but that hasn’t fixed it, am I missing something?

the code is as follows:

<Style x:Key="{x:Type CheckBox}" TargetType="CheckBox">
        <Setter Property="SnapsToDevicePixels" Value="true"/>
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="FocusVisualStyle" Value="{DynamicResource CheckBoxFocusVisual}" />        
        <Setter Property="Foreground" Value="{StaticResource FGBrush}"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="RenderOptions.EdgeMode" Value="Aliased"/>        
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">
                    <BulletDecorator Background="Transparent">
                        <BulletDecorator.Bullet>
                            <Grid Width="12" Height="12" MinHeight="{DynamicResource ResourceKey=MinimumIteractSizeDips}"
                                        MinWidth="{DynamicResource ResourceKey=MinimumIteractSizeDips}" 
                                  SnapsToDevicePixels="True" RenderOptions.EdgeMode="Aliased">

                                <Border x:Name="Border" 
                                        BitmapEffect="{StaticResource DropShadow}"
                                        MinHeight="{DynamicResource ResourceKey=MinimumIteractSizeDips}"
                                        MinWidth="{DynamicResource ResourceKey=MinimumIteractSizeDips}"
                                        CornerRadius="0" 
                                        Background="{StaticResource GreyGradientBrush}"
                                        BorderThickness="1"
                                        BorderBrush="{StaticResource NormalBorderBrush}" RenderOptions.EdgeMode="Aliased">

                                    <!--<Path Stretch="Fill"
                                              Margin="3"
                                                x:Name="CheckMark"
                                    SnapsToDevicePixels="False" 
                                    Stroke="{StaticResource GlyphBrush}"
                                    StrokeThickness="3"
                                    Fill="{DynamicResource GlyphBrush}"
                                          RenderOptions.EdgeMode="Aliased"
                                    Data="M103.78572,598.96112 L105.09846,597.5661 L107.00806,600.16229 C107.00806,600.16229 109.91004,592.74463 109.91004,592.74463 C109.91004,592.74463 111.74678,593.79761 111.74678,593.79761 C111.74678,593.79761 107.88566,602.75848 107.88566,602.75848 L106.60118,602.75848 z" />-->


                                    <Path Stretch="Fill"
                                              Margin="3"
                                                x:Name="CheckMark"
                                    SnapsToDevicePixels="False" 
                                    Stroke="{StaticResource GlyphBrush}"
                                    StrokeThickness="3"
                                    Fill="{DynamicResource GlyphBrush}"
                                          RenderOptions.EdgeMode="Aliased"
                                    Data="M103.78572,598.96112 L105.09846,597.5661 L107.00806,600.16229 C107.00806,600.16229 109.91004,592.74463 109.91004,592.74463 C109.91004,592.74463 111.74678,593.79761 111.74678,593.79761 C111.74678,593.79761 107.88566,602.75848 107.88566,602.75848 L106.60118,602.75848 z" />

                                </Border>
                            </Grid>
                        </BulletDecorator.Bullet>
                        <ContentPresenter Margin="4,0,0,0"
                                VerticalAlignment="Center"
                                HorizontalAlignment="Left"
                                RecognizesAccessKey="True"/>
                    </BulletDecorator>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="false">
                            <Setter TargetName="CheckMark" Property="Visibility" Value="Collapsed"/>
                        </Trigger>
                        <!--<Trigger Property="IsChecked" Value="{x:Null}">
                            <Setter TargetName="CheckMark" Property="Data" Value="M 0 7 L 7 0" />
                        </Trigger>-->
                        <Trigger Property="IsMouseOver" Value="true">
                            <Trigger.EnterActions>
                                <BeginStoryboard Name="HighlightAnim">
                                    <Storyboard TargetName="Border" TargetProperty="Opacity" >
                                        <DoubleAnimation To="0.5" Duration="00:00:00.1"/>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <StopStoryboard BeginStoryboardName="HighlightAnim"/>
                            </Trigger.ExitActions>
                        </Trigger>
                        <Trigger Property="IsPressed" Value="true">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource PressedBrush}" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource PressedBorderBrush}" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="false">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" />
                            <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T09:26:04+00:00Added an answer on May 29, 2026 at 9:26 am

    If I had to guess I would say it has something to do with all the decimals in your Path object, or perhaps the fact it’s Stretch=Fill

    This is the default CheckBox Path

    <Path Visibility="Collapsed"
          Width="7"
          Height="7"
          x:Name="CheckMark"
          SnapsToDevicePixels="False"
          StrokeThickness="2"
          Data="M 0 0 L 7 7 M 0 7 L 7 0">
          <Path.Stroke>
               <SolidColorBrush Color="{DynamicResource GlyphColor}" />
          </Path.Stroke>
     </Path>
    

    And this is your Path

    <Path Stretch="Fill"
          Margin="3"
          x:Name="CheckMark"
          SnapsToDevicePixels="False" 
          Stroke="{StaticResource GlyphBrush}"
          StrokeThickness="3"
          Fill="{DynamicResource GlyphBrush}"
          RenderOptions.EdgeMode="Aliased"
          Data="M103.78572,598.96112 L105.09846,597.5661 L107.00806,600.16229 C107.00806,600.16229 109.91004,592.74463 109.91004,592.74463 C109.91004,592.74463 111.74678,593.79761 111.74678,593.79761 C111.74678,593.79761 107.88566,602.75848 107.88566,602.75848 L106.60118,602.75848 z" />
    

    I would suggest altering properties one at a time to change your version to the MSDN version, and see which one fixes the issue. I am guessing it’s Path.Data, but it could be one of the other properties as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a checkbox column in a WPF DataGrid, and I have set
Hai i have Created a checkbox dynamically,,But the Size is very small so i
I'm developing a simple application. I have created a checkbox , and I set
I have created a Treeview and used a stack panel to include a checkbox,
I have a WPF containing a dynamically created DataGridComboBoxColumn this has a comboBox that
I have created three checkbox controls for three threads and each would start by
I have created web-application using JSF 2.0 where I have checkbox to select as
I may have missed something obvious with WPF, but is it possible to create
I have created code which works, it posts, an ajax call. It also posts
I have a WPF form that I have created programatically. It is basically a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.