Popup.Closed Popup.Closed Popup.Closed Popup.Closed Event

定義

IsOpen プロパティが false に変更されると発生します。Occurs when the IsOpen property changes to false.

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

次の例のイベント ハンドラーを定義する方法を示しています、Closedイベント。The following example shows how to define an event handler for the Closed event.

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>

注釈

APopupが開いたときおよび閉じたを切り替えることにより、IsOpenプロパティ。A Popup is opened and closed by toggling the IsOpen property.

適用対象

こちらもご覧ください