public static HomeView NewInstance() { var frag = new HomeView { Arguments = new Bundle() }; return(frag); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Create your application here SetContentView(Resource.Layout.RootView); CreateViewFor(HomeView.NewInstance(), RootViewModel.Home, Resource.Id.content_frame); SetBehindContentView(Resource.Layout.menu_frame); SlidingMenu.ShadowWidthRes = Resource.Dimension.shadow_width; SlidingMenu.BehindOffsetRes = Resource.Dimension.slidingmenu_offset; SlidingMenu.ShadowDrawableRes = Resource.Drawable.shadow; SlidingMenu.FadeDegree = 0.25f; SlidingMenu.TouchModeAbove = TouchMode.Fullscreen; //TouchMode.Margin; CreateViewFor(MenuView.NewInstance(), RootViewModel.Menu, Resource.Id.menu_frame); SupportActionBar.SetDisplayHomeAsUpEnabled(true); SupportActionBar.SetHomeAsUpIndicator(Resource.Drawable.ic_menu_grey600_36dp); SupportActionBar.SetHomeButtonEnabled(true); }
public static HomeView NewInstance() { var frag = new HomeView { Arguments = new Bundle() }; return frag; }