예제 #1
0
        public static HomeView NewInstance()
        {
            var frag = new HomeView {
                Arguments = new Bundle()
            };

            return(frag);
        }
예제 #2
0
        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);
        }
예제 #3
0
		public static HomeView NewInstance()
		{
			var frag = new HomeView { Arguments = new Bundle() };
			return frag;
		}