Export (0) Print
Expand All

XamlMember.LookupDependsOn Method

Returns a list of XamlMember objects. Items in the list report the members where dependency relationships for initialization order exist relative to this XamlMember.

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

protected virtual IList<XamlMember> LookupDependsOn()

Return Value

Type: System.Collections.Generic.IList<XamlMember>
A list of XamlMember objects.

This method is invoked when a caller gets a value from the DependsOn property. Override this method if you want DependsOn to return a value that differs from the value that is enabled by default internal reflection, and if you are also providing custom XamlMemberInvoker information.

The WPF XAML reader and writer implementations attribute this case with DependsOnAttribute. The default implementation uses this existing DependsOnAttribute technique.

Override this method if you are not using DependsOnAttribute for this purpose and intend to replace that technique for indicating property processing order with your own technique. If you do not intend to support a property processing order, you can use the default implementation because it returns no results, which is appropriate.

The list is read-only.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft