WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LogicalUtils

    Show / Hide Table of Contents

    Class LogicalUtils

    Class to find the logical elements using GetParent and GetChild methods.

    Inheritance
    System.Object
    LogicalUtils
    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: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public sealed class LogicalUtils

    Constructors

    LogicalUtils()

    Declaration
    public LogicalUtils()

    Methods

    GetParent(DependencyObject)

    Gets the parent.

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

    The current.

    Returns
    Type Description
    System.Windows.DependencyObject

    Parent dependency object.

    GetParentOfType(DependencyObject, Type)

    Gets the type of the parent of.

    Declaration
    public static DependencyObject GetParentOfType(DependencyObject current, Type type)
    Parameters
    Type Name Description
    System.Windows.DependencyObject current

    The current.

    System.Type type

    The looking type.

    Returns
    Type Description
    System.Windows.DependencyObject

    Parent Dependency object with specific type.

    GetRootParent(DependencyObject)

    Gets the root parent.

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

    The current.

    Returns
    Type Description
    System.Windows.DependencyObject

    Root parent dependency object.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved