|
Hi, I attached a sample project here.
https://skydrive.live.com/?cid=6f8cd96f9efdd748&sc=documents&uc=1&id=6F8CD96F9EFDD748%21168#
Please look at \ViewModels\ShellViewModel.cs, breakpoint at line 52 which remove view from region.
After line 52, the Context property for 'GroupLayoutArea" region will become NULL value.
------------------------------------------------
Ok, I have a region which have several active views, and I using Region Context above to pass data from Region down to all Views.
The problem is whenever any view is removed from that Region, the Context property of the Region will become NULL and hence other views will failed to get the region context later on.
Is there any way to remain the region context so it still able to share the data with other views under same region when a view is remove from the region?
The last choice in my mind is use
Shared Services, hmmm but just post this question here to see if any solution for me.
Thanks.
|