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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:42:57+00:00 2026-05-28T19:42:57+00:00

In Expression Blend for Windows Phone, how can I change the image source of

  • 0

In Expression Blend for Windows Phone, how can I change the image source of a button in different states. I want different images to be displayed in normal state and pressed state.

  • 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-28T19:42:59+00:00Added an answer on May 28, 2026 at 7:42 pm

    A couple of options come to mind, depending on what exactly you’re trying to accomplish.

    Once scenario is that you have a button that you want to act like a toggle, where you press it once and it stays pressed until you press it again, like a play button on a tape recorder (remember those?).

    If that’s what you’re looking for, I would create a boolean property in your codebehind file, such as IsPlaying, that indicates whether your button is currently pressed or not.

    Then you can create a ValueConverter that translates the true and false values to different images. Here’s a write-up on creating a ValueConverter. The article talks about converting a bool to a Visibility, but the concept is the same.

    In your BooleanToImage converter, or whatever you name it, you’ll need to decide which image to show and load it up as a Bitmap. Then in your .xaml you’ll bind to the IsPlaying property and set the converter to BooleanToImage. This approach works quite well for a lot of scenarios, and it’s nice and tidy, as you don’t have to think in terms of which image is playing; you can think about whether your app IsPlaying.

    The other scenario is that you want to display the image briefly when the button is pressed, like an animation, then return to the previous state. In that case, your best bet is using the VisualStateManager, which allows you to define different appearances for your button in various states, such as Normal and Clicked. You can apply animations to transition between the states. Here’s a walk-through that demonstrates using the VisualStateManager.

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

Sidebar

Related Questions

Free Expression Blend 4 for Windows Phone, Silverlight and XNA in all their glory...
I'm using Visual Studio 2010 & Expression Blend 4, the target is Windows Phone
I'm using Expression Blend 4 to prototype a Windows Phone 7 app. I have
I want to make a Silverlight application in Expression Blend because of the rich
When I run Expression Blend 4 on my Windows 8 x64, it just shows
I'd like to add a third-party DLL from Expression Blend 4 to my source
My project missing System.Windows.Interactivity . Google says that I have to install Expression Blend,
I'm using Expression Blend 3 I click on add live datasource, add new xml
Is anyone successfully using Expression Blend Preview for .NET 4 with the RC of
What are some recommendations for finding Expression Blend/WPF Designers to perform contract work? I

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.