MenuItem.OnSubmenuOpened Method (RoutedEventArgs)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Called when the submenu of a MenuItem is opened.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Protected Overridable Sub OnSubmenuOpened (
	e As RoutedEventArgs
)

Parameters

e
Type: System.Windows.RoutedEventArgs

The event data for the SubmenuOpened event.

This example shows how to use the OnSubmenuOpened method.

Private Sub OnSubmenuOpened(ByVal sender As Object, ByVal e As RoutedEventArgs)

	If sender Is e.Source Then
		textBlock1.Text = "Submenu is open."
	End If
End Sub

.NET Framework
Available since 3.0
Return to top
Show: