Partilhar via


MenuItem.OnSubmenuClosed(RoutedEventArgs) Método

Definição

Chamado quando o submenu um MenuItem é fechado.

protected:
 virtual void OnSubmenuClosed(System::Windows::RoutedEventArgs ^ e);
protected virtual void OnSubmenuClosed (System.Windows.RoutedEventArgs e);
abstract member OnSubmenuClosed : System.Windows.RoutedEventArgs -> unit
override this.OnSubmenuClosed : System.Windows.RoutedEventArgs -> unit
Protected Overridable Sub OnSubmenuClosed (e As RoutedEventArgs)

Parâmetros

e
RoutedEventArgs

Os dados de evento do evento SubmenuClosed.

Exemplos

Este exemplo mostra como usar o OnSubmenuClosed método .

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

Aplica-se a