XamlType.LookupContentProperty Method ()

.NET Framework (current version)
 

Returns XamlMember information for the content property of this XamlType.

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

protected virtual XamlMember LookupContentProperty()

Return Value

Type: System.Xaml.XamlMember

XamlMember information for the content property of this XamlType. May be null.

This method can be invoked when a caller gets a value from ContentProperty.

The default implementation checks for ContentPropertyAttribute on the type definition. It can also check BaseType for the attribute if no attribute is found on the immediate underlying type. If these checks do not discover a content type, the default implementation returns null.

Override this method if you are not relying on default internal CLR reflection and are using metadata or other techniques for reporting the XAML type system information or schema information of a type.

.NET Framework
Available since 4.0
Return to top
Show: