Quantcast
Channel: .net Brainwork » Windows 8
Viewing all articles
Browse latest Browse all 3

Windows Store App: Ways to send parameters when navigating between ViewModels

$
0
0
This is a quick reference for those starting on Windows Store Application development. If you are using Caliburn.Micro (if not, you probably should), you’re certain to require passing data between ViewModels/Screens. I’ll expose two ways you can go for to achieve this. Assuming you have a local reference/dependency for Caliburn’s INavigationService, first approach is to call the NavigateToViewModel method (the example is in the context of a ICommand.Execute()-type call): [crayon-51dafc58d71aa/] The method accepts one parameter, and that’s where you should send your data. In the destination ViewModel, on the other hand, in order to access the data, you need to [...]

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images