I have a problem with the wpf propertystatus control. The datacontext is bound with a dynamicresource. When this resource is updated the propertystatus sometimes show the wrong icon, or two icons on top of each other. E.g. the error icon instead of the warning icon or both at the same time. The csla version is 3.8.3.
Any suggestions on how to solve this?
I don't know that the control has been tested with a DyamicResource.
The control needs stable access to the underlying business object, because it needs to handle the object's events, and interact with the object via a direct interface.
Is it possible that the DynamicResource is somehow altering the underlying object and confusing the data context connection?
If I can't use a DynamicResource I have a problem with my design. What can I do Instead, update the datacontext directly on the propertystatus, whenever I need the control to interact with a new instance? Or do I have to create a new instance of the propertystatus when I have a new instance of the BO?
You can load Csla.Xaml.dll into the debugger and step through the PropertyStatus code to see if my guess is correct. I don't have time to look at this issue right now, but I suspect there's a way to alter PropertyStatus to work with a dynamic resource - if you can figure that out we'll apply that fix to the code.
Thank you for the quick reply! I'll take a look at the source.
Copyright (c) Marimer LLC