Class AttachedBehavior
Encapsulates mechanisms to build behaviors that are attached to object using attached properties.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.FieldList
Assembly: Telerik.Windows.Controls.PivotFieldList.dll
Syntax
public abstract class AttachedBehavior
Constructors
AttachedBehavior()
Declaration
protected AttachedBehavior()
Methods
Attach(DependencyObject)
Attaches this behavior to the element
.
Declaration
protected abstract void Attach(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Detach(DependencyObject)
Removes this behavior from the element
.
Declaration
protected abstract void Detach(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Reattach(DependencyObject, DependencyPropertyChangedEventArgs)
Detaches the previous behavior of the element
and attaches the next one. The signature is suitable for dependency property changed callback.
Declaration
public static void Reattach(DependencyObject element, DependencyPropertyChangedEventArgs args)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.DependencyPropertyChangedEventArgs
args
|
RequestElementType<THost>(Object)
Gets the element
converted to THost
.
Throws appropriate exception if the element is not of the right type.
Use this method in the Attach and Detach methods instead of safe casts.
Declaration
protected THost RequestElementType<THost>(object element)
where THost : DependencyObject
Parameters
System.Object
element
The element to convert. |
Returns
THost
The element of type |
Type Parameters
THost
The target type the |