Class DropAdornerBehavior<T>
用于显示ListBoxItem拖拽进行时的效果,通过附加属性Bool修改样式
public abstract class DropAdornerBehavior<T> : Behavior<T>, IAnimatable, IAttachedObject where T : UIElement
Type Parameters
T
- Inheritance
-
Behavior<T>DropAdornerBehavior<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
DragGroupProperty
public static readonly DependencyProperty DragGroupProperty
Field Value
Properties
DragGroup
判断可否放置的分组
public string DragGroup { get; set; }
Property Value
Methods
DropElement(UIElement, Point, Point)
protected abstract void DropElement(UIElement element, Point location, Point offset)
Parameters
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.