MenuItem.SubmenuClosed MenuItem.SubmenuClosed MenuItem.SubmenuClosed MenuItem.SubmenuClosed Event

Definición

Se produce cuando el estado de la IsSubmenuOpen propiedad cambia a false.Occurs when the state of the IsSubmenuOpen property changes to false.

public:
 event System::Windows::RoutedEventHandler ^ SubmenuClosed;
public event System.Windows.RoutedEventHandler SubmenuClosed;
member this.SubmenuClosed : System.Windows.RoutedEventHandler 
Public Custom Event SubmenuClosed As RoutedEventHandler 

Ejemplos

Los ejemplos siguientes muestran que realiza la llamada y el control de la SubmenuClosed eventos.The following examples demonstrate calling and handling the SubmenuClosed event.

<MenuItem Name="submenu" Header="Menu with Submenu" 
          SubmenuOpened="OnSubmenuOpened"
          SubmenuClosed="OnSubmenuClosed">
private void OnSubmenuClosed(object sender, RoutedEventArgs e)
{
    if (sender == e.Source)
    {
        textBlock1.Text = "Submenu is closed.";
    }
}
Private Sub OnSubmenuClosed(ByVal sender As Object, ByVal e As RoutedEventArgs)
	If sender Is e.Source Then
		textBlock1.Text = "Submenu is closed."
	End If
End Sub

Comentarios

Información sobre eventos enrutadosRouted Event Information

Campo de identificadorIdentifier field SubmenuClosedEvent
Estrategia de enrutamientoRouting strategy PropagaciónBubbling
delegadoDelegate RoutedEventHandler

Se aplica a