コード例 #1
0
        public AstronomyMasterDetailPage()
        {
            master = new AstronomyMasterPage();

            if (Device.RuntimePlatform.Equals(Device.iOS))
            {
                master.IconImageSource = ImageSource.FromFile("nav-menu-icon.png");
            }

            master.PageSelected += MasterPageSelected;

            this.Master         = master;
            this.Detail         = new NavigationPage(new SunrisePage());
            this.MasterBehavior = MasterBehavior.Popover;
        }
        public AstronomyMasterDetailPage()
        {
            var master = new AstronomyMasterPage();

            if (Device.RuntimePlatform == Device.iOS)
            {
                master.IconImageSource = ImageSource.FromFile("nav-menu-icon.png");
            }

            this.Master = master;

            this.MasterBehavior = MasterBehavior.Popover;

            this.Detail = new NavigationPage(new AboutPage());
        }
        public AstronomyMasterDetailPage()
        {
            var master = new AstronomyMasterPage();

            if (Device.RuntimePlatform == Device.iOS)
            {
                master.IconImageSource = ImageSource.FromFile("nav-menu-icon.png");
            }

            this.Master = master;

            this.MasterBehavior = MasterBehavior.Popover;

            master.PageSelected += MasterPageSelected;

            PresentDetailPage(PageType.Sunrise);
        }