Skip to content

Instantly share code, notes, and snippets.

@JoeM-RP JoeM-RP/AppShell.cs
Created Aug 14, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.