コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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;
        }