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>