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

The Archive Base Latest Questions

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

I am working in wpf – mvvm model. I have a textbox which holds-

  • 0

I am working in wpf – mvvm model.

I have a textbox which holds- “marketName”. In xaml I am binding the property – “newmarketname”(which is defined in my viewmodel) to this textbox. Once if user enter a new market name in that text box, the “set” method of the “newmarketname” get called.

In set method of the “newmarketname”, I call the PropertyChanged event.

And the property changed handler will call a fucntion, in which I check if the market name is already existing; if “yes”, I will assign string.Empty to the property “newmarketname”.
So the set method of “newmarketname” again get called followed by PropertyChanged event.

But the issue is: even though the value of “newmarketname” is getting changed to empty, it is not getting reflected in the UI.

What’s the issue?

  • 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-15T21:14:50+00:00Added an answer on May 15, 2026 at 9:14 pm

    WPF will ignore PropertyChanged events that are raised while it is setting the value. One workaround is to use a Converter (even one that just returns the raw value) and set UpdateSourceTrigger to LostFocus. Another is to set IsAsync to True.

    This has been fixed in .NET 4.0. See this blog entry for more information: http://karlshifflett.wordpress.com/2009/05/27/wpf-4-0-data-binding-change-great-feature/

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

Sidebar

Related Questions

I have a working WPF app using MVVM pattern in which the ViewModel calls
I am working on WPF application. I have a window which has Combobox and
I am working on WPF application, and now I have to choose which database
I am working in WPF and I am creating some userControl which some of
I'm working with WPF and I'm developing a complex usercontrol, which is composed of
I've got style resources in WPF working so that in my App.xaml I can
I'm working with WPF and often have the need to get the namespace and
I have been working in WPF web browsers lately but I can't seem to
I have a working WPF application. I would like to see it running as
We have a working WPF app that we are looking into running in the

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.