public App() { InitializeComponent(); adderViewModel = new AdderViewModel(); adderViewModel.RestoreState(Current.Properties); MainPage = new AddingMachinePage(adderViewModel); }
public AddingMachinePage(AdderViewModel viewModel) { InitializeComponent(); BindingContext = viewModel; }