MyMobileApp/AppShell.xaml.cs

24 lines
615 B
C#
Raw Normal View History

2025-03-13 11:30:05 +03:00
using MyMobileApp.ViewModels;
using MyMobileApp.Views;
using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace MyMobileApp
{
public partial class AppShell : Xamarin.Forms.Shell
{
public AppShell()
{
InitializeComponent();
Routing.RegisterRoute(nameof(ItemDetailPage), typeof(ItemDetailPage));
Routing.RegisterRoute(nameof(NewItemPage), typeof(NewItemPage));
}
private async void OnMenuItemClicked(object sender, EventArgs e)
{
await Shell.Current.GoToAsync("//LoginPage");
}
}
}