共用方式為


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 屬性。

適用於

另請參閱