Table of Contents

Class DragPositionBehavior

Namespace
HeBianGu.Base.WpfBase
Assembly
HeBianGu.Base.WpfBase.dll

应用 RenderTransform 的拖拽效果

public class DragPositionBehavior : Behavior<UIElement>, IAnimatable, IAttachedObject
Inheritance
DragPositionBehavior
Implements
Inherited Members
Extension Methods

Fields

IsEnabledProperty

This property allows the behavior to be used as a traditional attached property behavior.

public static DependencyProperty IsEnabledProperty

Field Value

DependencyProperty

Methods

GetIsEnabled(DependencyObject)

Returns whether DragPositionBehavior is enabled via attached property

public static bool GetIsEnabled(DependencyObject uie)

Parameters

uie DependencyObject

Element

Returns

bool

True/False

OnAttached()

Called after the behavior is attached to an AssociatedObject.

protected override void OnAttached()

Remarks

Override this to hook up functionality to the AssociatedObject.

OnDetaching()

Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.

protected override void OnDetaching()

Remarks

Override this to unhook functionality from the AssociatedObject.

SetIsEnabled(DependencyObject, bool)

Adds DragPositionBehavior to an element

public static void SetIsEnabled(DependencyObject uie, bool value)

Parameters

uie DependencyObject

Element to apply

value bool

True/False