Files
ShrlAlgoToolkit/WPFluent.Gallery/ViewModels/ViewModel.cs

33 lines
832 B
C#
Raw Normal View History

2025-04-24 20:56:44 +08:00
namespace WPFluent.Gallery.ViewModels;
2025-05-05 17:04:06 +08:00
public abstract partial class ViewModel : ObservableObject
2025-04-24 20:56:44 +08:00
{
/// <inheritdoc />
public virtual Task OnNavigatedToAsync()
{
OnNavigatedTo();
return Task.CompletedTask;
}
/// <summary>
/// Handles the event that is fired after the component is navigated to.
/// </summary>
// ReSharper disable once MemberCanBeProtected.Global
public virtual void OnNavigatedTo() { }
/// <inheritdoc />
public virtual Task OnNavigatedFromAsync()
{
OnNavigatedFrom();
return Task.CompletedTask;
}
/// <summary>
/// Handles the event that is fired before the component is navigated from.
/// </summary>
// ReSharper disable once MemberCanBeProtected.Global
public virtual void OnNavigatedFrom() { }
}