17 lines
568 B
C#
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;
|
|
}
|