Class DragPositionBehavior
应用 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
Methods
GetIsEnabled(DependencyObject)
Returns whether DragPositionBehavior is enabled via attached property
public static bool GetIsEnabled(DependencyObject uie)
Parameters
uie
DependencyObjectElement
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
DependencyObjectElement to apply
value
boolTrue/False