Edit

Share via


Popup.Opened Event

Definition

Occurs when the IsOpen property changes to true.

public event EventHandler Opened;

Event Type

Examples

The following example shows how to define an event handler for the Opened event.

private void PopupOpening(object sender, EventArgs e)
{
    //Code to execute when Popup opens
}
<DockPanel>
  <Popup Opened="PopupOpening">
    <TextBlock Background="Yellow">Popup Text</TextBlock>
  </Popup>
</DockPanel>

Remarks

A Popup is opened and closed by toggling the IsOpen property.

Applies to

See also