Class ContextMenuDisplayBehavior
自定义ContextMenu显示时机 有个问题就是PlaceTarget没有传递进来 后面看下
public class ContextMenuDisplayBehavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
- Inheritance
-
ContextMenuDisplayBehavior
- Implements
- Inherited Members
- Extension Methods
Fields
MouseButtonProperty
public static readonly DependencyProperty MouseButtonProperty
Field Value
Properties
MouseButton
public MouseButton MouseButton { get; set; }
Property Value
Methods
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.