Search Results for

    Show / Hide Table of Contents

    Class VisualTreeHelpers

    Inheritance
    System.Object
    VisualTreeHelpers
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.UI.Helper
    Assembly: Simplic.UI.dll
    Syntax
    public class VisualTreeHelpers

    Methods

    | Improve this Doc View Source

    FindAncestor<T>(DependencyObject)

    Returns the first ancester of specified type

    Declaration
    public static T FindAncestor<T>(DependencyObject current)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject current
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    FindAncestor<T>(DependencyObject, T)

    Returns a specific ancester of an object

    Declaration
    public static T FindAncestor<T>(DependencyObject current, T lookupItem)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject current
    T lookupItem
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    FindAncestor<T>(DependencyObject, String)

    Finds an ancestor object by name and type

    Declaration
    public static T FindAncestor<T>(DependencyObject current, string parentName)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject current
    System.String parentName
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    FindChild<T>(DependencyObject)

    Looks for a child control within a parent by type

    Declaration
    public static T FindChild<T>(DependencyObject parent)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject parent
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    FindChild<T>(DependencyObject, String)

    Looks for a child control within a parent by name

    Declaration
    public static T FindChild<T>(DependencyObject parent, string childName)
        where T : DependencyObject
    Parameters
    Type Name Description
    System.Windows.DependencyObject parent
    System.String childName
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    FindRootElement(DependencyObject)

    Find an element which has no parent, so it must be a the root element

    Declaration
    public static DependencyObject FindRootElement(DependencyObject current)
    Parameters
    Type Name Description
    System.Windows.DependencyObject current

    Element start searchinv

    Returns
    Type Description
    System.Windows.DependencyObject

    Instance of a root element

    | Improve this Doc View Source

    FindRootWindow(DependencyObject)

    Find the current root window

    Declaration
    public static Window FindRootWindow(DependencyObject current)
    Parameters
    Type Name Description
    System.Windows.DependencyObject current

    Starting point for searching

    Returns
    Type Description
    System.Windows.Window

    If found, an instance of a WPF Window

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx