menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DependencyObjectExtensions - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DependencyObjectExtensions

    Inheritance
    System.Object
    DependencyObjectExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.GridCommon.Wpf.dll
    Syntax
    public static class DependencyObjectExtensions

    Methods

    FindElementOfType<T>(FrameworkElement)

    Searches the subtree of an element (including that element) for an element of a particluar type.

    Declaration
    public static T FindElementOfType<T>(this FrameworkElement element)
        where T : FrameworkElement
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element
    Returns
    Type
    T
    Type Parameters
    Name
    T

    FindElementsOfType<T>(FrameworkElement)

    Declaration
    public static IEnumerable<T> FindElementsOfType<T>(this FrameworkElement element)
        where T : class
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element
    Returns
    Type
    System.Collections.Generic.IEnumerable<T>
    Type Parameters
    Name
    T

    FindName<T>(Control, String)

    Returns the template element of the given name within the Control.

    Declaration
    public static T FindName<T>(this Control control, string name)
        where T : FrameworkElement
    Parameters
    Type Name Description
    System.Windows.Controls.Control control
    System.String name
    Returns
    Type
    T
    Type Parameters
    Name
    T

    FindParentElementOfType<T>(FrameworkElement)

    Finds the type of the parent element of T.

    Declaration
    public static T FindParentElementOfType<T>(this FrameworkElement element)
        where T : FrameworkElement
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element

    The element.

    Returns
    Type
    T
    Type Parameters
    Name
    T

    IsDescendant(DependencyObject, DependencyObject)

    Checks if the node is present in the VisualTree.

    Declaration
    public static bool IsDescendant(this DependencyObject dpo, DependencyObject node)
    Parameters
    Type Name Description
    System.Windows.DependencyObject dpo
    System.Windows.DependencyObject node
    Returns
    Type
    System.Boolean

    Parent(DependencyObject)

    Declaration
    public static DependencyObject Parent(this DependencyObject o)
    Parameters
    Type Name Description
    System.Windows.DependencyObject o
    Returns
    Type
    System.Windows.DependencyObject
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved