Esempio n. 1
0
        public FrameworkElement GetDisplayText(Completion completion)
        {
            if (session.IsDismissed)
            {
                return(null);
            }
            var collection = session.SelectedCompletionCollection;

            Debug.Assert(collection.FilteredCollection.Contains(completion));
            return(completionTextElementProvider.Create(collection, completion));
        }
Esempio n. 2
0
        FrameworkElement CreateFrameworkElement(Completion completion, CompletionClassifierKind kind)
        {
            if (completion == null)
            {
                throw new ArgumentNullException(nameof(completion));
            }
            if (session.IsDismissed)
            {
                return(null);
            }
            var completionSet = session.SelectedCompletionSet;

            if (completionSet == null)
            {
                return(null);
            }
            Debug.Assert(completionSet.Completions.Contains(completion));
            return(completionTextElementProvider.Create(completionSet, completion, kind));
        }