Hi guys,
after upgrading from 3.0.12 to 3.2.1 I've noticed a major issue: DataTriggers stops working after NoesisGUI reinitialization (Shutdown and then Init). After debugging I have found out that the DependencyProperty.UnsetValue object is disposed (swigCPtr.Handle equals zero) so DataTrigger comparison returns incorrect result.
Hi guys, after upgrading from 3.0.12 to 3.2.1 I've noticed a major issue: DataTriggers stops working after NoesisGUI reinitialization (Shutdown and then Init). After debugging I have found out that the
DependencyProperty.UnsetValue
object is disposed (swigCPtr.Handle equals zero) so DataTrigger comparison returns incorrect result.As I see, two years ago in 3.1.0 you've made an optimization by creating the
DependencyProperty.UnsetValue
object only once. Now I realize why 3.1.0 was broken for me among some other issues (so I've skipped it). https://github.com/Noesis/Managed/blob/0990dc8d64e1db96a5550db17f1f5700490ead5f/Src/Noesis/Core/Src/Proxies/DependencyProperty.cs#L34I've made a straightforward fix like this:
However I'm not sure if it's a valid fix as there could be other cases where a similar issue may appear. I've found the same issue with
Binding.DoNothing
https://github.com/Noesis/Managed/blob/0990dc8d64e1db96a5550db17f1f5700490ead5f/Src/Noesis/Core/Src/Proxies/Binding.cs#L42Regards! Vladimir