mirror of https://github.com/AMT-Cheif/Stylet.git
21 lines
615 B
C#
21 lines
615 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Stylet.Samples.NavigationController.Pages
|
|
{
|
|
public class Page1ViewModel : Screen
|
|
{
|
|
private readonly INavigationController navigationController;
|
|
|
|
public Page1ViewModel(INavigationController navigationController)
|
|
{
|
|
this.navigationController = navigationController ?? throw new ArgumentNullException(nameof(navigationController));
|
|
}
|
|
|
|
public void NavigateToPage2() => this.navigationController.NavigateToPage2("Page 1");
|
|
}
|
|
}
|