public MainCalculatorPage() { InitializeComponent(); BindingContext = new MainCalculatorViewModel(); ((MainCalculatorViewModel)BindingContext).Init(); }
public void Setup() { _viewModel = new MainCalculatorViewModel(); _viewModel.Init(); }