presence_sample_v2/Presence.Desktop/ViewModels/MainWindowViewModel.cs
2024-12-04 11:11:13 +03:00

16 lines
453 B
C#

using System;
using Microsoft.Extensions.DependencyInjection;
using ReactiveUI;
namespace Presence.Desktop.ViewModels;
public class MainWindowViewModel: ViewModelBase, IScreen
{
public RoutingState Router { get; } = new RoutingState();
public MainWindowViewModel(IServiceProvider serviceProvider)
{
var groupViewModel = serviceProvider.GetRequiredService<GroupViewModel>();
Router.Navigate.Execute(groupViewModel);
}
}