InkForge/app/InkForge.Common/ViewModels/LandingViewModel.cs

29 lines
605 B
C#
Raw Normal View History

2024-02-10 10:38:28 +01:00
using System.Reactive.Linq;
using InkForge.Common.ViewModels.Landing;
using Microsoft.Extensions.DependencyInjection;
2024-02-09 01:23:38 +01:00
using ReactiveUI;
namespace InkForge.Common.ViewModels;
2024-02-10 10:38:28 +01:00
public class LandingViewModel : ReactiveObject, IScreen
2024-02-09 01:23:38 +01:00
{
2024-02-10 10:38:28 +01:00
private readonly LandingViewModelFactory _factory;
public RoutingState Router { get; } = new();
public LandingViewModel(LandingViewModelFactory factory)
{
_factory = factory;
Router.CurrentViewModel.Where(x => x is null)
.InvokeCommand<IRoutableViewModel>(Router.NavigateAndReset);
}
2024-02-09 01:23:38 +01:00
2024-02-10 10:38:28 +01:00
public void Navigate<T>() where T : LandingViewModelBase
{
}
2024-02-09 01:23:38 +01:00
}