You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KinectExercise_FrancoBroda/PenaltyMaster3000/ViewModel/StartVM.cs

33 lines
803 B

using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using PenaltyMaster3000.Navigation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using System.Windows.Navigation;
namespace PenaltyMaster3000.ViewModel
{
public class StartVM : ObservableObject
{
private readonly INavigationService _navigationService;
public ICommand StartCommand { get; set; }
public StartVM(INavigationService navigationService)
{
_navigationService = navigationService;
StartCommand = new RelayCommand(Start);
}
private void Start()
{
_navigationService.NavigateTo("MainView");
}
}
}