Class LogicalUtils
Class to find the logical elements using GetParent and GetChild methods.
Inheritance
System.Object
LogicalUtils
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.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. |