Popup.Opened 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 true
.
public:
event EventHandler ^ Opened;
public event EventHandler Opened;
member this.Opened : EventHandler
Public Custom Event Opened As EventHandler
Event Type
Examples
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>
Remarks
A Popup is opened and closed by toggling the IsOpen property.
Applies to
See also
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.