• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    GetParentObject Method

    GetParentObject(DependencyObject, Boolean)

    Gets the parent. Which tree the parent is retrieved from depends on the parameters.

    Declaration
    public static DependencyObject GetParentObject(this DependencyObject child, bool searchCompleteVisualTree)
    Parameters
    Type Name Description
    DependencyObject child

    The child to get parent for.

    Boolean searchCompleteVisualTree

    If true the parent in the visual tree is returned, if false the parent may be retrieved from another tree depending on the child type.

    Returns
    Type Description
    DependencyObject

    The parent element, and depending on the parameters its retrieved from either visual tree, logical tree or a tree not strictly speaking either the logical tree or the visual tree.

    In This Article
    Back to top Copyright AlterNET Software Download PDF