DataTemplate.SetExtensionInstance(FrameworkElement, IDataTemplateExtension) Method

Definition

Sets the value of the DataTemplate.ExtensionInstance XAML attached property for a target element.

public:
 static void SetExtensionInstance(FrameworkElement ^ element, IDataTemplateExtension ^ value);
 static void SetExtensionInstance(FrameworkElement const & element, IDataTemplateExtension const & value);
public static void SetExtensionInstance(FrameworkElement element, IDataTemplateExtension value);
function setExtensionInstance(element, value)
Public Shared Sub SetExtensionInstance (element As FrameworkElement, value As IDataTemplateExtension)

Parameters

element
FrameworkElement

The object to which the property value is written.

value
IDataTemplateExtension

The value to set.

Applies to

See also