33 lines
752 B
C#
33 lines
752 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using MauiApp.Core.System.Navigation;
|
|
|
|
namespace MauiApp.ViewModels;
|
|
|
|
public partial class BasePageViewModel : ObservableObject
|
|
{
|
|
|
|
public ContentPage View;
|
|
protected readonly INavigationService NavigationService = MauiProgram.ServiceProvider.GetService<INavigationService>();
|
|
|
|
|
|
[ObservableProperty] private bool isBusy;
|
|
|
|
|
|
public virtual Task Initialize()
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
public virtual Task OnAppearing()
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
public virtual Task OnDisappearing()
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
public virtual Task OnNavigatedTo(NavigatedToEventArgs args)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
} |