public Editor(ViewModel.ViewModel viewModel) { InitializeComponent(); DataContext = viewModel; viewModel.EditorText = viewModel.SelectedDocument.OcrText; }
public Library() { InitializeComponent(); _viewModel = ServiceLocator.Current.GetInstance <ViewModel.ViewModel>(); DataContext = _viewModel; }
public Reader(ViewModel.ViewModel viewModel) { InitializeComponent(); _viewModel = viewModel; DataContext = _viewModel; }
public InputText(ViewModel.ViewModel viewModel) { InitializeComponent(); this.DataContext = viewModel; }