Dela via


ContextItemManager.GetValue<ItemType> Method

Returns an instance of the requested item type.

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

Syntax

'Declaration
Public Function GetValue(Of ItemType As ContextItem) As ItemType
'Usage
Dim instance As ContextItemManager 
Dim returnValue As ItemType

returnValue = instance.GetValue()
public ItemType GetValue<ItemType>()
where ItemType : ContextItem
public:
generic<typename ItemType>
where ItemType : ContextItem
ItemType GetValue()
JScript does not support generic types or methods.

Type Parameters

  • ItemType
    The type of item to return.

Return Value

Type: ItemType
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

ContextItemManager Members

GetValue Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<ContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility