Esempio n. 1
0
 public App()
 {
     // The root page of your application
     var vm = new ShellPageViewModel(
         Container.Instance.GetInstance<IAccelerometer>(),
         Container.Instance.GetInstance<IWarning>()
         );
     vm.RestoreState(Current.Properties);
     MainPage = new ShellPage(vm);
 }
Esempio n. 2
0
 public ShellPage(ShellPageViewModel vm)
 {
     InitializeComponent();
     BindingContext = vm;
 }