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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:26:02+00:00 2026-05-14T08:26:02+00:00

Normally when you want a databound control to ‘update,’ you use the PropertyChanged event

  • 0

Normally when you want a databound control to ‘update,’ you use the “PropertyChanged” event to signal to the interface that the data has changed behind the scenes.

For instance, you could have a textblock that is bound to the datacontext with a property “DisplayText”

<TextBlock Text="{Binding Path=DisplayText}"/>

From here, if the DataContext raises the PropertyChanged event with PropertyName “DisplayText,” then this textblock’s text should update (assuming you didn’t change the Mode of the binding).

However, I have a more complicated binding that uses many properties off of the datacontext to determine the final look and feel of the control. To accomplish this, I bind directly to the datacontext and use a converter. In this case I am working with an image source.

<Image Source="{Binding Converter={StaticResource ImageConverter}}"/>

As you can see, I use a {Binding} with no path to bind directly to the datacontext, and I use an ImageConverter to select the image I’m looking for. But now I have no way (that I know of) to tell that binding to update. I tried raising the propertychanged event with “.” as the propertyname, which did not work.

Is this possible? Do I have to wrap up the converting logic into a property that the binding can attach to, or is there a way to tell the binding to refresh (without explicitly refreshing the binding)?

Any help would be greatly appreciated.
Thanks!
-Adam

  • 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-14T08:26:02+00:00Added an answer on May 14, 2026 at 8:26 am

    The workaround here was to add a property to my object (to be used as the datacontext) called “Self” , which simply returned

    public Object Self { get { return this; }}

    Then in the binding I used this property:

    <Image Source="{Binding Path=Self, Converter={StaticResource ImageConverter}}"/>

    Then when I call

    PropertyChanged(this, new PropertyChangedEventArgs("Self"))

    it works like a charm.

    Thanks all.

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

Sidebar

Related Questions

I want to store NoteObjects in Core Data. Normally, a NoteObject has a NSString
I want to write a CMakeLists.txt so that I can run my tests normally
I want to detect when my touchpad is clicked! I normally use a usb
When I want to use multiple windows in my code, I normally do it
I want to access certain form elements from classes that normally don't have access
The author of this article states that Normally you don't want to have access
Web services on Heroku normally use the PORT environment variable, but I want to
I have a dojo.dnd Source object that I just want to list out normally,
I want to use cvDrawContours to draw my own contours created from CvSeq (normally,
Hi I want to Fill out a Rectangle. Normally i can use: g.FillRectangle(Brushes.Green, x1,

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.