Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Created August 15, 2018 04:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeM-RP/4f9a710c375c1c2024c8c9f5b3505040 to your computer and use it in GitHub Desktop.
Save JoeM-RP/4f9a710c375c1c2024c8c9f5b3505040 to your computer and use it in GitHub Desktop.
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