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.

32 lines
663 B

using System;
using System.Windows.Input;
using ViewModel;
using App.Pages;
namespace App.ViewModel
{
public class ChampionDetailPageVM
{
#region Properties
public INavigation Navigation { get; set; }
#endregion
#region Commands
public ICommand NaviagteToChampionAddEditPageCommand { get; private set; }
#endregion
public ChampionDetailPageVM()
{
NaviagteToChampionAddEditPageCommand = new Command(
execute: async () => await Navigation.PushModalAsync(new ChampionAddEditPage()),
canExecute: () => Navigation is not null
);
}
}
}