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

定義

IsSubmenuOpen プロパティの状態が 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 

次の例は、イベントのSubmenuClosed呼び出しと処理を示しています。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

注釈

ルーティングされたイベント情報Routed Event Information

識別子フィールドIdentifier field SubmenuClosedEvent
ルーティング方法Routing strategy バブリングBubbling
DelegateDelegate RoutedEventHandler

適用対象