IUIElementProvider<TItem,TContext>.GetUIElement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.