SmartVisualTreeHelper class

Namespace : SoftArcs.WPFSmartLibrary.CommonHelper

The SmartVisualTreeHelper type exposes the following members.

Methods

  Name Description
Public-Method-Icon[4]Static-Member-Icon FindAncestor<T>(DependencyObject) Finds the first ancestor element of the given type in the visual tree (traverse up).
Public-Method-Icon[4]Static-Member-Icon FindFirstVisualChild<T>(DependencyObject) Finds the first visual child in the visual tree (traverse down).
Public-Method-Icon[4]Static-Member-Icon FindVisualChild<T>(DependencyObject, int) Finds the "nth" visual child of the given type in the visual tree (traverse down).
Public-Method-Icon[4]Static-Member-Icon FindVisualChildByName(DependencyObject, string) Finds the first visual child with the given name in the visual tree (traverse down).
Public-Method-Icon[4]Static-Member-Icon FindVisualChildByName<T>(DependencyObject, string) Finds the first visual child of the given type with the given name in the visual tree (traverse down).
Public-Method-Icon[4]Static-Member-Icon FindVisualTreeRoot(DependencyObject) Finds the visual root of the visual tree (traverse up). Start with the given DependencyObject.
Public-Method-Icon[4]Static-Member-Icon GetParent<T>(DependencyObject) Gets the parent of a 'DependencyObject' recursive (returns the object with the given data type).
 

Last edited Feb 13, 2013 at 12:21 PM by DotNetMastermind, version 49

Comments

No comments yet.