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):
|
1 2 3 4 |
public void Execute(string vehicleNameParameter) { navigationService.NavigateToViewModel<TargetPageViewModel>(vehicleNameParameter); } |
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 (more…)
Read more





