/// <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; }
/// <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; }