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 7664571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:20:26+00:00 2026-05-31T14:20:26+00:00

I have a custom template checkbox that I am implementing using a viewbox (using

  • 0

I have a custom template checkbox that I am implementing using a viewbox (using a viewbox to allow for simple scaling), and I can’t figure out how to change out what is displayed when the checkbox is checked/unchecked.

I would like for the checkmark to be red when checked (not the final look, just want to see it working).

My Checkbox style:

<Style x:Key="KioskCheckBox" TargetType="{x:Type CheckBox}">
        <Setter Property="FontFamily" Value="{StaticResource FontFamilyLight}" />
        <Setter Property="FontSize" Value="{StaticResource KioskNormalFontSize}" />
        <Setter Property="Foreground" Value="{StaticResource brshSystemTextColor}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CheckBox">

                        <!--<Viewbox HorizontalAlignment="Left" 
                                 VerticalAlignment="Top"
                                 Stretch="Fill" 
                                 Height="30"   
                                 Width="30" Margin="10,0,0,0">
                            <Grid Height="200" Width="200">
                                <Ellipse  
                                Fill="Transparent"
                                StrokeThickness="15" 
                                Stroke="{StaticResource brshSystemTextColor}"/>
                                <Path 
                                Stroke="{StaticResource brshSecondaryColor}"
                                Fill="Transparent" 
                                Stretch="None"
                                StrokeThickness="20"
                                Data="M 30,100 L 80,140 L 160,60" Margin="0,0,2,2"/>
                            </Grid>
                        </Viewbox>-->
                        <ContentControl>
                        <StackPanel Orientation="Horizontal">
                            <Viewbox HorizontalAlignment="Left" 
                                VerticalAlignment="Center"
                                Stretch="Fill" 
                                Height="30"   
                                Width="30" Margin="10,0,0,0">
                                <Grid Height="200" Width="200">
                                    <Ellipse  
                                        Fill="Transparent"
                                        StrokeThickness="15" 
                                        Stroke="{StaticResource brshSystemTextColor}"/>
                                    <Path 
                                        Stroke="{StaticResource brshSecondaryColor}"
                                        Fill="Transparent" 
                                        Stretch="None"
                                        StrokeThickness="20"
                                        Data="M 30,100 L 80,140 L 160,60" Margin="0,0,2,2"/>
                                </Grid>
                            </Viewbox>
                            <TextBlock Text="{TemplateBinding Content}" Margin="10,0,0,0" />
                        </StackPanel>
                    </ContentControl> 
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="True">

                            <!-- Running into problems here. -->

                        </Trigger>
                        <Trigger Property="IsChecked" Value="False">

                        </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-31T14:20:28+00:00Added an answer on May 31, 2026 at 2:20 pm

    Go for the original template (here). This is the part where the color is defined:

    <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>
    

    Sorry, sorry and sorry again… I think this is what you are looking for:

    <ControlTemplate TargetType="CheckBox">
      <Grid>
        <Path x:Name="Equis"
              Opacity="0"
              Stroke="Red"
              Fill="Red"
              Stretch="UniformToFill"
              StrokeThickness="20"
              Data="M 30,100 L 80,140 L 160,60"
              Margin="0,0,2,2" />
        <ContentPresenter Margin="4"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top" />
      </Grid>
      <ControlTemplate.Triggers>
        <Trigger Property="IsChecked"
                 Value="true">
          <Setter TargetName="Equis"
                  Property="Opacity"
                  Value="1" />
        </Trigger>
        <Trigger Property="IsChecked"
                 Value="false">
          <Setter TargetName="Equis"
                  Property="Opacity"
                  Value="0" />
        </Trigger>
      </ControlTemplate.Triggers>
    </ControlTemplate>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom template for an expander that is close to the code
I have a custom editor template for a vehicle part that is used in
I have a custom list template that is deployed as a .wsp. The list
How can I separate Visual State Management from a Custom Control template? I have
I have a custom control template for a ListView that puts an extra line
I have written a custom template loader, and templates may change during the lifetime
I have been using a custom template file called user-profile.tpl.php for a while. But
I have a custom template for news items defined using a BrowserView overriding the
I am aware that in a custom display or editor template I can get
I have a custom media item template that allows users to add category filters

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.