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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:14:10+00:00 2026-05-15T12:14:10+00:00

For example, I have created a button with a check mark drawn on it.

  • 0

For example, I have created a button with a check mark drawn on it. I need to use it in a couple places in my window.

<Button Width="25">
    <!-- Draw a Green checkmark -->
    <Polyline Points="2,5,6,10,13,1" Stroke="Green" StrokeThickness="4" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
</Button>

Since I only want to change the content, I’m not sure if Styles or Templates apply. Do I need to create a UserControl?

Edit: This can be accomplished with a style. But, I only want to change the content and I don’t want to override the current 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-15T12:14:10+00:00Added an answer on May 15, 2026 at 12:14 pm

    This is crying out for a style. Add the following Style to your Window.Resources:

    <style TargetType="Button" x:Key="tick">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <Polyline Points="2,5,6,10,13,1" Stroke="Green" StrokeThickness="4" StrokeLineJoin="Round" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    

    and you can then define your button as:

    <Button Width="25" Style="{StaticResource tick}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a little example,please have a look, http://jsfiddle.net/bWTwL/ I want to have
for example: I have created one javascript property array model with some properties like
For example I have created cluster with 1GB RAM memory per node. After some
I have created a Space Invaders Game using an example game + source. Using
I have created a basic site using ASP.NET routing according to Mike Ormond's example
I have created a separate class (let's call it class2.cs for example) and want
I have created a CPTTradingRangePlot using the up-to-date sample code as an example. The
I have created a GUI that will setup the pivot table. For example, I
I have basic hello word example of Prime Faces. I have created dynamic web
I was already running a sub-website under following path http://example.com/sub-site/ Now, I have created

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.