Popup.Closed 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 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>