开发者

initialising view model at runtime

开发者 https://www.devze.com 2023-02-24 04:36 出处:网络
I\'m working with silverlight 4 and I use MVVM design. I have created a b开发者_如何学Pythonusiness silverlight application and I want to change view model informations while authentifying I mean when

I'm working with silverlight 4 and I use MVVM design. I have created a b开发者_如何学Pythonusiness silverlight application and I want to change view model informations while authentifying I mean when a user is authentified the model view bring this user's informations from a database. I tried to do that using events but I couldn't can anyone help me?


You can just call wcf methods in viewmodel. in completed handler init your necessary fields


MVVMLight has a Messenger class, try that.

0

精彩评论

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