Class DependencyObjectExtensions
Class which represents the dependency object extension.
Inheritance
System.Object
DependencyObjectExtensions
Assembly: Syncfusion.Gantt.Wpf.dll
Syntax
public static class DependencyObjectExtensions : Object
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 Parameters
FindElementsOfType<T>(FrameworkElement)
Searches the subtree of an element (including that element)
for an element of a particluar type.
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
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 Parameters
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 Parameters
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
Parent(DependencyObject)
Declaration
public static DependencyObject Parent(this DependencyObject o)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
o |
|
Returns
Type |
System.Windows.DependencyObject |