Dela via


ContextMenuEventArgs.Handled Property

Definition

Gets or sets a value that marks the routed event as handled. A true value for Handled prevents most handlers along the event route from handling the same event again.

public:
 property bool Handled { bool get(); void set(bool value); };
bool Handled();

void Handled(bool value);
public bool Handled { get; set; }
var boolean = contextMenuEventArgs.handled;
contextMenuEventArgs.handled = boolean;
Public Property Handled As Boolean

Property Value

Boolean

bool

True to mark the routed event handled. False to leave the routed event unhandled, which permits the event to potentially route further and be acted on by other handlers. The default is false.

Applies to