WPF binding and pointers
Posted
by Eran
on Stack Overflow
See other posts from Stack Overflow
or by Eran
Published on 2010-06-01T07:13:18Z
Indexed on
2010/06/01
7:23 UTC
Read the original article
Hit count: 488
wpf
|wpf-binding
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
© Stack Overflow or respective owner