Created
August 14, 2018 21:08
-
-
Save JoeM-RP/dd484666e5ee73b6cf1c6d30968afe2d to your computer and use it in GitHub Desktop.
RxUIForms.AppShell.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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