Popup.Closed イベント

定義

IsOpen プロパティが false に変更されると発生します。

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

イベントの種類

次の例は、イベントのイベント ハンドラーを定義する方法を Closed 示しています。

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>

注釈

Popupは、 プロパティを切り替えて開いたり閉じたりしますIsOpen

適用対象

こちらもご覧ください