[英]How to implement onNavigatedToFrame in MVVM Light
I am working on a UWP project (Windows Phone 8.1) with C# and MVVM Light toolkit. 我正在使用C#和MVVM Light工具包进行UWP项目(Windows Phone 8.1)。 I've tried Googling a lot, but couldn't find a solution for similar to onNavigatedTo event. 我已经尝试了很多Google搜索,但是找不到类似于onNavigatedTo事件的解决方案。 I want to be able to call a method as soon as the user navigates to one of the views (pages). 我希望能够在用户导航到其中一个视图(页面)后立即调用方法。 Can anyone help me out and give me some tips? 谁能帮我一下,给我一些提示吗?
Refer this:- 请参考:
There is a new and simpler implementation here: https://marcominerva.wordpress.com/2014/10/10/navigationservice-in-mvvm-light-v5/ First we create the NavigationService and DialogService (for the page navigation params): 这里有一个新的和更简单的实现: https ://marcominerva.wordpress.com/2014/10/10/navigationservice-in-mvvm-light-v5/首先,我们创建NavigationService和DialogService(用于页面导航参数):
Details:- https://stackoverflow.com/a/26386815/5096993 详细信息: -https : //stackoverflow.com/a/26386815/5096993
https://stackoverflow.com/a/10974150/5096993 https://stackoverflow.com/a/10974150/5096993
http://msdn.microsoft.com/en-us/magazine/jj651572.aspx] 1 http://msdn.microsoft.com/en-us/magazine/jj651572.aspx] 1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.