MenuItem.OnSubmenuOpened(RoutedEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the submenu of a MenuItem is opened.
protected:
virtual void OnSubmenuOpened(System::Windows::RoutedEventArgs ^ e);
protected virtual void OnSubmenuOpened (System.Windows.RoutedEventArgs e);
abstract member OnSubmenuOpened : System.Windows.RoutedEventArgs -> unit
override this.OnSubmenuOpened : System.Windows.RoutedEventArgs -> unit
Protected Overridable Sub OnSubmenuOpened (e As RoutedEventArgs)
Parameters
The event data for the SubmenuOpened event.
Examples
This example shows how to use the OnSubmenuOpened method.
private void OnSubmenuOpened(object sender, RoutedEventArgs e)
{
if (sender == e.Source)
{
textBlock1.Text = "Submenu is open.";
}
}
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
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.