Class
AttachedBehavior

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:

cs-api-definition
public abstract class AttachedBehavior

Inheritance: objectAttachedBehavior

Derived Classes: DragDropBehaviorEditorsBehaviorFieldListContextMenuBehaviorRoutedContextMenuBehaviorWindowDialogHostingBehavior

Constructors

AttachedBehavior()

Declaration

cs-api-definition
protected AttachedBehavior()

Methods

Attach(DependencyObject)

Attaches this behavior to the element.

Declaration

cs-api-definition
protected abstract void Attach(DependencyObject element)

Parameters

element

DependencyObject

Detach(DependencyObject)

Removes this behavior from the element.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
protected THost RequestElementType<THost>(object element) where THost : DependencyObject

Parameters

element

object

The element to convert.

Returns

THost

The element of type THost.