first commit
This commit is contained in:
16
Nitrox.Launcher/ViewModels/Abstract/RoutableViewModelBase.cs
Normal file
16
Nitrox.Launcher/ViewModels/Abstract/RoutableViewModelBase.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user