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

  • Home
  • SEARCH
  • 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 523085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:25:16+00:00 2026-05-13T08:25:16+00:00

I want to replace <Button Text=Foo Command={Binding Foo}> <Button.CommandParameter> <System:Boolean>True</System:Boolean> </Button.CommandParameter> </Button> with something

  • 0

I want to replace

<Button Text="Foo" Command="{Binding Foo}">
    <Button.CommandParameter>
        <System:Boolean>True</System:Boolean>
    </Button.CommandParameter>
</Button>

with something like

<Button ... CommandParameter="{???}"/>
  • 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-13T08:25:16+00:00Added an answer on May 13, 2026 at 8:25 am

    You can write a markup extension by deriving from the MarkupExtension class and implementing the ProvideValue method:

    public class BooleanValueExtension : MarkupExtension
    {
      private readonly bool _value;
    
      public BooleanValueExtension(bool value)
      {
        _value = value;
      }
    
      public override object ProvideValue(IServiceProvider serviceProvider)
      {
        return _value;
      }
    }
    

    You can then use this using the brace syntax:

    <Button CommandParameter="{local:BooleanValue True}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 494k
  • Answers 494k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I also figured out what the problem was. I was… May 16, 2026 at 10:57 am
  • Editorial Team
    Editorial Team added an answer Solution:: Open the .project file inside your project folder add… May 16, 2026 at 10:57 am
  • Editorial Team
    Editorial Team added an answer This stylesheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:m="map" exclude-result-prefixes="m"> <xsl:key name="kTestIntID" match="Book"… May 16, 2026 at 10:57 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I want to replace input=file button to only text like that http://valums.com/wp-content/uploads/ajax-upload/demo-jquery.htm but i
I want to replace the next expression with something simpler but i'm not sure
I want to create a button with the stock Remove icon on it, but
I have a treeview in my C# code. I want to replace all existing
The HTML: <div class=first id=first_id> <div class=second>text sample</div> <div class=third><button type=submit class=some_class id=some_id>send</button></div> </div>
I want to replace the hard coded string Categories with a variable. How can
In a new rail 3 app I want to replace prototype with jquery, but
I have a string containing a valid Clojure form. I want to replace a
I have a table view and I want to put a label on the
The code below creates a column of three labels. I would like to take

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.