XamlMember.LookupTargetType Method ()

.NET Framework (current version)
 

Returns the XamlType of the type where the XamlMember can exist.

Namespace:   System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

protected virtual XamlType LookupTargetType()

Return Value

Type: System.Xaml.XamlType

The type where the XamlMember can exist. See Remarks.

The default implementation distinguishes between attachable and non-attachable members. For non-attachable members, LookupTargetType always returns DeclaringType. For attachable members, LookupTargetType returns a result based on examining the UnderlyingMember accessor parameter type and interprets that type based on XAML schema context.

This method is invoked when a caller gets a value from TargetType. Override this method if you want to report uniform results for an entire XamlMember derived class, or if you have specialized metadata available to determine this on a per-case basis.

.NET Framework
Available since 4.0
Return to top
Show: