public FilterDialog() { InitializeComponent(); tbFilter.Focus(); _parentWindowViewModel = null; }
public FilterDialog(MainWindowViewModel parentWindowViewModel) : this() { _parentWindowViewModel = parentWindowViewModel; this.DataContext = _parentWindowViewModel; }
public AppendTextDialog(MainWindowViewModel parentWindowViewModel) : this() { _parentWindowViewModel = parentWindowViewModel; this.DataContext = _parentWindowViewModel; }
private void Window_Loaded(object sender, RoutedEventArgs e) { ViewModel = new MainWindowViewModel(this); DataContext = ViewModel; }
public MainWindow() { InitializeComponent(); viewModel = (MainWindowViewModel)base.DataContext; viewModel.View = this; }