IUIElementProvider<TItem,TContext>.GetUIElement Method

Definition

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

public:
 System::Windows::UIElement ^ GetUIElement(TItem itemToRender, TContext context, Microsoft::VisualStudio::Language::Intellisense::UIElementType elementType);
public System.Windows.UIElement GetUIElement (TItem itemToRender, TContext context, Microsoft.VisualStudio.Language.Intellisense.UIElementType elementType);
abstract member GetUIElement : 'Item * 'Context * Microsoft.VisualStudio.Language.Intellisense.UIElementType -> System.Windows.UIElement
Public Function GetUIElement (itemToRender As TItem, context As TContext, elementType As UIElementType) As UIElement

Parameters

itemToRender
TItem

The item for which to return a UIElement.

context
TContext

The context in which the item is to be rendered.

elementType
UIElementType

The type of UIElement to be returned.

Returns

A valid WPF UIElement, or null if none could be created.

Applies to