Questions tagged [propertychanged]
221 questions
1
vote
1 answer
How fire trigger when one or multiple property had changed?
I have many components in my XAML, I need fire Trigger when one or many components has your value changed.
I not want use one PropertyChangedTrigger for each components, I want use one Trigger for all components.
thanks.

Guilherme Sanches
- 21
- 3
1
vote
4 answers
wpf update ListViewItem background property
I have a listview that is binded to a ThreadSafeObservableCollection. The background of each of these items is set to an enum that is run through a color converter, here's the code for these 2 settings.
…

Joshua
- 839
- 4
- 12
- 15
1
vote
2 answers
Detect when a OnPropertyChanged occurs
Here is a simplified example of what i need:
I have class A that have a property Name. the Name property is changed asynchronously and there is no way to know when the modification occurs.
In order to show the updated value of it in the view, I…

ihisham
- 248
- 1
- 10
1
vote
1 answer
How to raise property change value from list of property in c#
I'm using MVVM pattern with WPF application.
Data I'm getting from device which is communicating with my application (Desktop) via USB communication.
Here is my MVVM structure:
In Model: I'm getting data from device (which run on WinCE…

punter
- 11
- 3
1
vote
1 answer
Where is implementation of PropertyChanged EventHandler?
Im a bit confused. I dont understand what code is actually is executed when I implement INotifyPropertyChanged interface.
As i imagine the chain goes like this:
My class impliments
INotifyPropertyChanged=>
Every property`s setter…

Vladimir Nani
- 2,774
- 6
- 31
- 52
1
vote
2 answers
Entity Framework 4 - How to inject logic in property setter?
I have a property auto-generated from database in my edmx: Description. I then create a "partial class" .cs file for the entity and add a read-only property: ShortDescription.
ShortDescription's getter simply processes Description (removes line…

Gus Cavalcanti
- 10,527
- 23
- 71
- 104
1
vote
2 answers
ListView does not update when source is changed - Even though I implemented PropertyChanged
I've been struggling with this problem for hours now:
I'm building an UWP application in the MVVM pattern.
Problem: I can't get my ListView's ItemSource to update/rebind to a new instance of ObservableCollection, when I change the ItemSource's…

PeterOeClausen
- 370
- 3
- 15
1
vote
1 answer
PropertyChangedEventHandler PropertyChanged is null
i am implementing PropertyChangedEventHandler PropertyChanged and it's always null.
property string is right donno where is the problem
here is the code i am using
public event PropertyChangedEventHandler PropertyChanged;
protected virtual…

Miroo
- 795
- 3
- 13
- 35
1
vote
2 answers
Dictionary Data Change Notification
I have a situation where I need to monitor and react to changes to objects in a dictionary.
class Order
{
string Ordernumber;
string Orderstate;
int Shares;
decimal Price;
}
For Example:
Dictionary OrderData = new…

Valmorgal
- 109
- 9
1
vote
2 answers
How Can I detect Changes on WCF Model?
I have this ViewModel:
public class CombustiblesViewModel
{
public List Combustibles{ get; set; }
public CombustiblesViewModel()
{
Combustibles = _svc.Combustibles_List(sTicket); …

ericpap
- 2,917
- 5
- 33
- 52
1
vote
1 answer
SetBinding not registering for PropertyChanged event
In an application I'm working on, I programmatically create several FrameworkElements with differing data sources. Unfortunately, the data binding is failing.
I managed to distill the problem into the following program:
using…

Benjamin Chambers
- 557
- 4
- 18
1
vote
1 answer
Enum Properties not updating across CollectionViews
I have a class, "MainViewModel" that includes an Observable Collection of ColourMappingViewModel, and references out to two other ViewModels, one which is used to update the ColourMappingViewModels (ColourControllerViewModel), and one which contains…

jimbo
- 603
- 9
- 27
1
vote
0 answers
Propertychanged is null when RaisePropertyChanged
I'm making the game carcassonne and I'm using MVVM. So I have one window (ApplicationView) and several UserControls (for each view). The window contains al the viewModels and the views in Datacontext. In this window I use a ContentControl to display…

Brandon Pille
- 11
- 3
1
vote
1 answer
How to best implement IPropertyChanged on Timespan subtype?
in .NET (and WPF), I need to monitor changes on a Timespan object which doesn't include any change event like PropertyChanged. What would be the best way to add this functionnality?

742
- 3,009
- 3
- 23
- 18
1
vote
1 answer
JDialog property changed behaviour
I have implemented a JDialog which is along the lines of the top answer seen in this previous question. The code works entirely apart from the fact that when an invalid input is provided, two PropertyChangedEvents occur when only one is desired.…

Hungry
- 1,645
- 1
- 16
- 26