Example #1
0
        public App()
        {
            // The root page of your application

            calcViewModel = new CalcViewModel();
            calcViewModel.RestoreState(Current.Properties);
            MainPage = new CalcMachinePage(calcViewModel);
        }
        public CalcMachinePage(CalcViewModel viewModel)
        {
            InitializeComponent();

            BindingContext = viewModel;
        }