Exemple #1
0
        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"));
        }
Exemple #2
0
 public override void OnNavigate()
 {
     SelectedSample = null;
 }