public App() { InitializeComponent(); cv = new CalcViewModel(); cv.RestoreState(Current.Properties); MainPage = new MainPage(cv); }
public MainPage(CalcViewModel viewModel) { InitializeComponent(); BindingContext = viewModel; }
public App() { InitializeComponent(); cv = new CalcViewModel(); cv.RestoreState(Current.Properties); MainPage = new MainPage(cv); }
public MainPage(CalcViewModel viewModel) { InitializeComponent(); BindingContext = viewModel; }