IUIElementProvider<TItem, TContext> Interface

 

Defines the provider of WPF UIElements for objects of a certain type, for a specified context.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

public interface IUIElementProvider<TItem, TContext>

Type Parameters

TItem

The type of the item.

TContext

The type of the context.

NameDescription
System_CAPS_pubmethodGetUIElement(TItem, TContext, UIElementType)

Gets a UIElement to display an item for the specified context.

This is a MEF component part, and should be exported with the NameAttribute, ContentTypeAttribute, and OrderAttribute attributes.

The following is an example of the use of these attributes

[Export(typeof(IIntellisensePresenterProvider))]
[Export(typeof(IUIElementProvider<CompletionSet, ICompletionSession>))]
[Name("Test Completion Presenter")]
[Order(After="Default Completion Presenter")]
[ContentType("code")]
Return to top
Show: