XamlType.LookupContentProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns XamlMember information for the content property of this XamlType.
protected:
virtual System::Xaml::XamlMember ^ LookupContentProperty();
protected virtual System.Xaml.XamlMember LookupContentProperty ();
abstract member LookupContentProperty : unit -> System.Xaml.XamlMember
override this.LookupContentProperty : unit -> System.Xaml.XamlMember
Protected Overridable Function LookupContentProperty () As XamlMember
Returns
XamlMember information for the content property of this XamlType. May be null
.
Remarks
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.