MenuItem.OnSubmenuClosed(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 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)
Parameters
The event data for the SubmenuClosed event.
Examples
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
Applies to
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.