Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
using System.Reactive;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using ReactiveUI;
using Xamvvm;
namespace RxUIForms.ViewModels
{
public abstract class BasePageViewModel : BasePageModelRxUI, IPageVisibilityChange, INavigationPushed, INavigationPopped
{
/* Omitted */
/*
* Define Methods
*/
/// <summary>
/// Called when the pagve is popped from the navigation stack
/// </summary>
public void NavigationPopped()
{
}
/// <summary>
/// Called when the page is pushed onto the navigation stack
/// </summary>
public void NavigationPushed()
{
}
/// <summary>
/// Called whenever the page is revealed
/// </summary>
public void OnAppearing()
{
}
/// <summary>
/// Called whenever the page is hidden
/// </summary>
public void OnDisappearing()
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment