WPF binding and pointers
- by Eran
hey guys,
I have a WPF application that contains windows with few user controls and Coordinator object. the window and all its user controls pointing to an object, which instace is in the Coordinator, by thier DataContext.
the problem is that I want to change this object (e.g. create new object()) in the Coordinator but I want all the dataContexts to point to the new object.
I tried to send the object by ref to the window constructor but it didn't help.
any idea about how can I rewrite the memory location that all pointers are pointing to?
(I don't want to repalce the properties in object since its a lot of work nor to use a middle object that points to the replaced object)
Thanks
Eran