Share via


ContextItemManager.GetValue<TItemType> Method

Returns an instance of the requested item type.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Function GetValue(Of TItemType As ContextItem) As TItemType
public TItemType GetValue<TItemType>()
where TItemType : ContextItem
public:
generic<typename TItemType>
where TItemType : ContextItem
TItemType GetValue()
member GetValue : unit -> 'TItemType  when 'TItemType : ContextItem
JScript does not support generic types or methods.

Type Parameters

  • TItemType

Return Value

Type: TItemType
A context item of the requested type. If there is no item in the context of this type, a default one will be created.

.NET Framework Security

See Also

Reference

ContextItemManager Class

GetValue Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility