/// <inheritdoc/> public ToolBarItemViewModel CreateToolBarItem() { if (_toolBarQuickFindViewModel == null) { _toolBarQuickFindViewModel = new ToolBarQuickFindViewModel(this) { Items = SearchExtension.RecentFindPatterns, // Text is used in DataTemplate instead of SelectedItem //SelectedItem = SearchService.Query.FindPattern, }; } return(_toolBarQuickFindViewModel); }
/// <inheritdoc/> public ToolBarItemViewModel CreateToolBarItem() { if (_toolBarQuickFindViewModel == null) { _toolBarQuickFindViewModel = new ToolBarQuickFindViewModel(this) { Items = SearchExtension.RecentFindPatterns, // Text is used in DataTemplate instead of SelectedItem //SelectedItem = SearchService.Query.FindPattern, }; } return _toolBarQuickFindViewModel; }