Class LogicalUtils
Class to find the logical elements using GetParent and GetChild methods.
Inheritance
System.Object
LogicalUtils
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public sealed class LogicalUtils : Object
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. |