Table of Contents

Class ContextMenuDisplayBehavior

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

自定义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

DependencyProperty

Properties

MouseButton

public MouseButton MouseButton { get; set; }

Property Value

MouseButton

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.