MenuItem.OnClick 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.
protected:
virtual void OnClick();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected virtual void OnClick ();
protected virtual void OnClick ();
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
abstract member OnClick : unit -> unit
override this.OnClick : unit -> unit
abstract member OnClick : unit -> unit
override this.OnClick : unit -> unit
Protected Overridable Sub OnClick ()
- Attributes
Remarks
If you inherit from MenuItem, be sure to call the base class to get the following behavior.
Toggling of the IsChecked property.
Focus being set to the menu item.
Automation invoke event.
Click event.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.