MobApp/ViewModels/LoginViewModel.cs

25 lines
615 B
C#
Raw Normal View History

2025-03-13 11:23:08 +03:00
using MobApp.Views;
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
namespace MobApp.ViewModels
{
public class LoginViewModel : BaseViewModel
{
public Command LoginCommand { get; }
public LoginViewModel()
{
LoginCommand = new Command(OnLoginClicked);
}
private async void OnLoginClicked(object obj)
{
// Prefixing with `//` switches to a different navigation stack instead of pushing to the active one
await Shell.Current.GoToAsync($"//{nameof(AboutPage)}");
}
}
}