Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP
Created August 14, 2018 21:08
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/dd484666e5ee73b6cf1c6d30968afe2d to your computer and use it in GitHub Desktop.
Save JoeM-RP/dd484666e5ee73b6cf1c6d30968afe2d to your computer and use it in GitHub Desktop.
RxUIForms.AppShell.cs
using System;
using ReactiveUI;
using RxUIForms.ViewModels;
using Xamarin.Forms;
using Xamvvm;
namespace RxUIForms.Views
{
public class AppShell : MasterDetailPage, IBasePageRxUI<AppShellViewModel>
{
public AppShell()
{
Master = this.GetPageFromCache<MenuPageViewModel>() as Page;
Detail = new NavigationPage(this.GetPageFromCache<HomePageViewModel>() as Page)
{
BarTextColor = Color.White,
BarBackgroundColor = Color.FromHex("#394A76"),
Title = "Home Page"
};
}
public AppShellViewModel ViewModel { get; set; }
object IViewFor.ViewModel { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment