Popup.Opened Popup.Opened Popup.Opened Popup.Opened Event

定義

IsOpen プロパティが true に変更されると発生します。Occurs when the IsOpen property changes to true.

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

次の例は、 Openedイベントのイベントハンドラーを定義する方法を示しています。The following example shows how to define an event handler for the Opened event.

private void PopupOpening(object sender, EventArgs e)
{
    //Code to execute when Popup opens
}
Private Sub PopupOpening(ByVal sender As Object, ByVal e As EventArgs)
 'Code to execute when Popup opens
End Sub
<DockPanel>
  <Popup Opened="PopupOpening">
    <TextBlock Background="Yellow">Popup Text</TextBlock>
  </Popup>
</DockPanel>

注釈

プロパティIsOpenを切り替えることによって、 Popupが開かれて閉じられます。A Popup is opened and closed by toggling the IsOpen property.

適用対象

こちらもご覧ください