Example #1
0
        public AddingMachinePage(AdderViewModel viewModel)
        {
            InitializeComponent();

            // Set ViewModel as BindingContext.
            BindingContext = viewModel;
        }
Example #2
0
 public App()
 {
     // Instantiate and initialize ViewModel for page.
     adderViewModel = new AdderViewModel();
     adderViewModel.RestoreState(Current.Properties);
     MainPage = new AddingMachinePage(adderViewModel);
 }