Пример #1
0
 public MainPage()
 {
     BindingContext = new ViewModels.MainViewModel();
     InitializeComponent();
 }
Пример #2
0
 public MainWindow()
 {
     InitializeComponent();
     DataContext = new MainViewModel();
 }