16,020,186 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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));
}