Share via


WindowActivatedEventArgs.Handled Property

Definition

Gets or sets whether the Activated event was handled.

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

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

Property Value

Boolean

bool

True, if the event has been handled by the appropriate delegate. Otherwise, false.

Remarks

Setting this property to true will prevent the window from getting keyboard focus on activation.

Applies to