Files
Nitrox/Nitrox.Launcher/ViewModels/Abstract/RoutableViewModelBase.cs
2025-07-06 00:23:46 +02:00

17 lines
568 B
C#

using System.Threading.Tasks;
using Nitrox.Launcher.Models.Design;
namespace Nitrox.Launcher.ViewModels.Abstract;
public abstract class RoutableViewModelBase : ViewModelBase
{
public IRoutingScreen HostScreen { get; } = AppViewLocator.HostScreen;
/// <summary>
/// Loads content that the view should show. While the returned task is running a loading indicator will be visible.
/// </summary>
internal virtual Task ViewContentLoadAsync() => Task.CompletedTask;
internal virtual Task ViewContentUnloadAsync() => Task.CompletedTask;
}