I am working in the wpf - mvvm model.
I have a textbox that says "market name" In Xaml I am binding property - "newmarketname" (which is defined in my viewmodel) in this text box. Once the user enters a new market name in that text box, the "set market" method of "new market name" is called.
In the prescribed method of "newmarketname", I change the property and call the event.
And the property changing handler will call a fucntion, in which I check that the name of the market already exists; If "yes", I will specify the string. The property is empty of "newmarketname", so the set method of "newmarketname" is again known, followed by the property changed event.
But the issue is: Even if the value of "newmarketname" has become empty, it is not reflected in the UI.
What's the problem?
WPF will ignore events in properties that have been raised Setting this value is a workaround Use converter (even one that gives raw value) and set UpdateSourceTrigger to LostFocus. Another ISAsync set to True
It is set in .NET 4.0 has gone. See this blog entry for more information:
Comments
Post a Comment