Example #1
0
 /// <summary>
 /// Setup ViewModel here, instead of specifying it directly in the XAML.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
 {
     viewModel = new View3VM();
     DataContext = viewModel;
 }
Example #2
0
 /// <summary>
 /// Setup ViewModel here, instead of specifying it directly in the XAML.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
 {
     viewModel   = new View3VM();
     DataContext = viewModel;
 }