コード例 #1
0
        public PlanetsDetailPage(int id)
        {
            InitializeComponent();

            var planet = PlanetDataRepository.GetPlanetFromId(id);

            BindingContext = planet;
        }
        public PlanetsMasterDetail()
        {
            var master = new PlanetsMasterPage();

            Master = master;

            master.MasterItemSelected += MasterItemSelected;

            MasterItemSelected(this, PlanetDataRepository.GetPlanetFromId(0));
        }