|
namespace CaliburnSample1.ViewModels
{
using System;
using Caliburn.Micro;
using CaliburnSample1.ViewModels;
public class MainPageViewModel:SampleViewModel
{
readonly INavigationService navigationService;
public MainPageViewModel(INavigationService navigationService)
{
this.navigationService = navigationService;
PageTitle = "Main Page";
}
public void Basic()
{
navigationService.Navigate(new Uri("/Views/BasicSampleView.xaml", UriKind.Relative));
}
public void Derived()
{
navigationService.Navigate(new Uri("/Views/DerivedSampleView.xaml", UriKind.Relative));
}
public void Advanced()
{
navigationService.Navigate(new Uri("/Views/AdvancedSampleView.xaml", UriKind.Relative));
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.