Assembly: PresentationFramework (in presentationframework.dll)
public static DependencyObject FindLogicalNode ( DependencyObject logicalTreeNode, string elementName )
public static DependencyObject FindLogicalNode ( DependencyObject logicalTreeNode, String elementName )
public static function FindLogicalNode ( logicalTreeNode : DependencyObject, elementName : String ) : DependencyObject
The name of the element node to find.
Return ValueThe element with the matching name, if one is found; returns a null reference (Nothing in Visual Basic) if no matching name was found in the active namescope.
The search direction for FindLogicalNode is toward child elements; the search direction for the FindName methods is toward parent elements.
The FindName methods are governed by the concept of a namescope. Using FindName you are guaranteed that only one element of that name exists, because namescopes enforce uniqueness. In contrast, FindLogicalNode ignores namescope and might cross namescope boundaries during the search. As such, there is no guarantee of uniqueness of name once boundaries are crossed. For more information about namescopes, see WPF Namescopes.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.