Пример #1
0
 private void StatsPage_Loaded(object sender, RoutedEventArgs e)
 {
     DataContext = new StatsPageViewModel();
 }
Пример #2
0
 public StatsPage()
 {
     InitializeComponent();
     DataContext = new StatsPageViewModel();
     Loaded     += StatsPage_Loaded;
 }