ClassAttachedBehavior
Encapsulates mechanisms to build behaviors that are attached to object using attached properties.
Definition
Namespace:Telerik.Windows.Controls.FieldList
Assembly:Telerik.Windows.Controls.PivotFieldList.dll
Syntax:
public abstract class AttachedBehavior
Inheritance: objectAttachedBehavior
Derived Classes:
Constructors
AttachedBehavior()
Declaration
protected AttachedBehavior()
Methods
Attach(DependencyObject)
Attaches this behavior to the element.
Declaration
protected abstract void Attach(DependencyObject element)
Parameters
element
DependencyObject
Detach(DependencyObject)
Removes this behavior from the element.
Declaration
protected abstract void Detach(DependencyObject element)
Parameters
element
DependencyObject
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
element
DependencyObject
args
DependencyPropertyChangedEventArgs
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
element
The element to convert.
Returns
THost
The element of type THost.