public MainPageModel() { Samples = new SafeObservable <SampleItem>(); this.PropertyChanged += (sender, e) => { if (e.PropertyName == "SelectedSample" && SelectedSample != null) { SelectedSample.Navigate(); } }; Samples.Add(SampleItem.Create <AppBarModel>("app bar")); Samples.Add(SampleItem.Create <ConverterModel>("converter")); Samples.Add(SampleItem.Create <AutoSettingsModel>("automatic settings")); Samples.Add(SampleItem.Create <ProgressModel>("progress indicator")); }
public override void OnNavigate() { SelectedSample = null; }