コード例 #1
0
 public MainPage()
 {
     InitializeComponent();
     BindingContext = viewModel = new ProductsViewModel();
 }
コード例 #2
0
 public NewProductPage(ProductsViewModel productsViewModel)
 {
     InitializeComponent();
     BindingContext = this.productsViewModel = productsViewModel;
 }