Class DependencyObjectExtensions
This class is used to find the parent framework element of the object.
Inheritance
System.Object
DependencyObjectExtensions
Namespace: Syncfusion.UI.Xaml.PivotGrid
Assembly: Syncfusion.SfPivotGrid.UWP.dll
Syntax
public static class DependencyObjectExtensions : Object
Methods
FindElementOfTypeWithName<T>(FrameworkElement, String)
Searches the sub tree of an element (including that element) for an element with specific name and particular type.
Declaration
public static T FindElementOfTypeWithName<T>(this FrameworkElement element, string name)
where T : FrameworkElement
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.FrameworkElement | element | The element used to search. |
System.String | name | The name of element searched for. |
Returns
Type | Description |
---|---|
T | The searched element. |
Type Parameters
Name | Description |
---|---|
T | The type of searched element. |
FindParentElementOfType<T>(FrameworkElement)
Gets the parent element of the specified framework element in the visual tree.
Declaration
public static T FindParentElementOfType<T>(this FrameworkElement element)
where T : class
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.FrameworkElement | element | The child element. |
Returns
Type | Description |
---|---|
T | The parent element. |
Type Parameters
Name | Description |
---|---|
T | The type of parent element. |
GetName(DependencyObject)
Gets the name of the dependency element.
Declaration
public static string GetName(this DependencyObject d)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | d | The dependency element. |
Returns
Type | Description |
---|---|
System.String | The framework element. |