Hello everyone,
I am working on a WPF project and found an issue ot thread calls.
I have a Dependency Property of a usercontrol as below
- public bool IsON
- {
- get { return (bool)GetValue(IsONProperty); }
- set { SetValue(IsONProperty, value); }
- }
I tried lock function with a readonly object but no luck.
Is there any solution to make it thread safe on user control side and not from the calling class because I want to handle it from usercontrol side, as the property was used several times
Thanks
Devendra
Amit GuptaPosted Jun 12, 2020, 5:29 AM
Devendra KumarPosted Jun 13, 2020, 1:39 AM
Rajanikant HawaldarPosted Jun 11, 2020, 11:07 PM