开发者

Pass an object between ViewModels in Silverlight

i have a ViewModel that have a Method to receive a Func<Uri,bool> for navigation and a button that i implement ICommand which execute that method(i instantiate ViewModel in Code behind and pass Navigate of Frame to that).

i navigate between pages properly but there is a no idea to pass an obje开发者_如何学编程ct(e.g Person) to another page because there is NO association between ViewModels (also i can't use any FrameWork and i don't want to use QueryString)


If the answer you found is to use some form of aggregator similar to the Messenger class in MVVM Light then I fully endorse it. Don't forget to mark the question as answered if it solved your problem (even if it's your own answer), and maybe even provide some details on what choice you settled on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜