mirror of https://github.com/AMT-Cheif/Stylet.git
21 lines
543 B
C#
21 lines
543 B
C#
using System;
|
|
using Stylet;
|
|
|
|
namespace Stylet.Samples.NavigationController.Pages
|
|
{
|
|
public class ShellViewModel : Conductor<IScreen>, INavigationControllerDelegate
|
|
{
|
|
public HeaderViewModel HeaderViewModel { get; }
|
|
|
|
public ShellViewModel(HeaderViewModel headerViewModel)
|
|
{
|
|
this.HeaderViewModel = headerViewModel ?? throw new ArgumentNullException(nameof(headerViewModel));
|
|
}
|
|
|
|
public void NavigateTo(IScreen screen)
|
|
{
|
|
this.ActivateItem(screen);
|
|
}
|
|
}
|
|
}
|