MenuItem.OnSubmenuClosed(RoutedEventArgs) MenuItem.OnSubmenuClosed(RoutedEventArgs) MenuItem.OnSubmenuClosed(RoutedEventArgs) MenuItem.OnSubmenuClosed(RoutedEventArgs) Method

定義

MenuItem のサブメニューが閉じられると呼び出されます。Called when the submenu of a MenuItem is closed.

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)

パラメーター

e
RoutedEventArgs RoutedEventArgs RoutedEventArgs RoutedEventArgs

SubmenuClosed イベントのイベント データ。The event data for the SubmenuClosed event.

この例では、メソッドのOnSubmenuClosed使用方法を示します。This example shows how to use the OnSubmenuClosed method.

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

適用対象