Click here to Skip to main content
16,020,186 members

Comments by Member 12606650 (Top 2 by date)

Member 12606650 5-Aug-20 14:35pm View    
In the past I've gotten chided about too much code in my posts, so I may have abbreviated too much in this post, but the code IS in place.
I have a test window that has a button to rotate the color, and a button to toggle the IsFlashing bool. This works 100% of the time. But when I connect to the system I am monitoring, it blasts the initial state of the system, and we receive ~165 updates in ~ 1 second, and this only works ~1/5 of the time. By work, I mean the end result of my top-level item should be blinking, but it winds up not blinking (even though IsFlashing is true). Manual test works because my clicking is no-where near fast enough to get the UI out of synch.
Member 12606650 31-Jul-20 15:40pm View    
I had abbreviated those items in the class ColorStatus with "// ..." (as well as ctor method), but it does have the standard INotifyPropertyChanged items (else it wouldn't compile). Here is the missing INotifyPropertyChangedlines of code:

public event PropertyChangedEventHandler PropertyChanged = (sender, e) => { };
protected PropertyChangedEventHandler PropertyChangedField;
public void OnPropertyChanged(string name)
{
PropertyChanged(this, new PropertyChangedEventArgs(name));
}