Share via


Popup.Closed Evento

Definição

Ocorre quando a propriedade IsOpen é alterada para false.

public:
 event EventHandler ^ Closed;
public event EventHandler Closed;
member this.Closed : EventHandler 
Public Custom Event Closed As EventHandler 

Tipo de evento

Exemplos

O exemplo a seguir mostra como definir um manipulador de eventos para o Closed evento.

private void PopupClosing(object sender, EventArgs e)
{
    //Code to execute when Popup closes
}
Private Sub PopupClosing(ByVal sender As Object, ByVal e As EventArgs)
    'Code to execute when Popup closes
End Sub
<DockPanel>
  <Popup Closed="PopupClosing">
    <TextBlock Background="Yellow">Popup Text</TextBlock>
  </Popup>
</DockPanel>

Comentários

Um Popup é aberto e fechado alternando a IsOpen propriedade.

Aplica-se a

Confira também