IUIElementProvider<TItem,TContext> IUIElementProvider<TItem,TContext> IUIElementProvider<TItem,TContext> IUIElementProvider<TItem,TContext> Interface

Definition

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

generic <typename TItem, typename TContext>
public interface class IUIElementProvider
public interface IUIElementProvider<TItem,TContext>
type IUIElementProvider<'Item, 'Context> = interface
Public Interface IUIElementProvider(Of TItem, TContext)
Type Parameters
TItem

The type of the item.

TContext

The type of the context.

Examples

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")]  

Remarks

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

Methods

GetUIElement(TItem, TContext, UIElementType) GetUIElement(TItem, TContext, UIElementType) GetUIElement(TItem, TContext, UIElementType) GetUIElement(TItem, TContext, UIElementType)

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

Applies to