Gets a reference to the specified interface implemented by this element.

DependencyObject GetInterface( 
Type interfaceType 
)

Parameters

interfaceType

Type: Type

The type of interface.

Return Value

A reference to the specified interface, or null if the element does not support the interface.