public MainPage() { InitializeComponent(); // get the samples for this platform var samples = GetPlatformSamples(); var showcase = samples.First(s => s.Category.HasFlag(SampleCategories.Showcases)); var detailContents = new DetailContentsPage(showcase); var detailsPage = new DetailsPage(detailContents); var masterPage = new MasterPage(samples); masterPage.SampleSelected += sample => { detailsPage.Sample = sample; IsPresented = false; }; detailsPage.PlaySamples += delegate { masterPage.CycleSamples(); }; Master = masterPage; Detail = detailsPage; }
public DetailsPage(DetailContentsPage root) : base(root) { InitializeComponent(); }