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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:05:51+00:00 2026-05-23T09:05:51+00:00

I need to have a button style that will present 3 different texts of

  • 0

I need to have a button style that will present 3 different texts of the binded stings. Now, I can easily pass one text string to Content Presenter where Content=”{TemplateBinding Content}”. I need to be able to pass 3 strings in a similar way to 3 either texblock inside button style or use multiple Content presenters. I am wondering how I can do this. Any ideas are highly appreciated?

  • 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-23T09:05:52+00:00Added an answer on May 23, 2026 at 9:05 am

    You can use a custom DataTemplate:

    <Button>
        <Button.ContentTemplate>
            <DataTemplate>
                <StackPanel>
                    <TextBlock Text="1" />
                    <TextBlock Text="2" />
                    <TextBlock Text="3" />
                </StackPanel>
            </DataTemplate>
        </Button.ContentTemplate>
    </Button>
    

    You can swap out or change the layout by altering the StackPanel.

    If it needs to be a Style, you could use:

    <Style TargetType="Button">
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding One}" />
                        <TextBlock Text="{Binding Two}" />
                        <TextBlock Text="{Binding Three}" />
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    

    And then you’d need to define a custom class to pass the three values like so:

    public class MyClass {
        public string One { get; set; }
        public string Two { get; set; }
        public string Three { get; set; }
    }
    

    And then use it like so:

    <Button>
        <local:MyClass One="1" Two="2" Three="3" />
    </Button>
    

    Where local refers to the namespace of MyClass.

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

Sidebar

Related Questions

I need a button-like control that can have a Checked property, so that when
I have a Button on appwidget, that I need to 'enable'/'disable' programmatically from a
I have a hidden button on a form that I need to click in
I have a search box that doesn't have a submit button, I need to
I need to have a button whose text is underlined and the only way
i have a form button in the form,which i need to perform basic action
I have a Flex button. I need one color on the left and another
I need some advanced CSS help here. I have a login button and a
I need to position this update button on www.euroworker.no/order (you'll have to add an
I have added some dynamic textboxes upon a button click. I need the values

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.