public SearchResultsView(SearchResultsViewModel model) { this.results = model; this.InitializeComponent(); this.DataContext = this.results; this.results.Results.CollectionChanged += SearchResultsChanged; this.InitCollection(); }
public SearchBarViewModel(SearchResultsViewModel results) { this.results = results; this.searchTerms = string.Empty; this.Search = new RelayCommand(this.SearchArchive); }