Popup.Closed Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Event Type
Examples
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>
Remarks
A Popup is opened and closed by toggling the IsOpen property.
Applies to
See also
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.