RibbonButton.OnClick Method
Handles the Click event and raises the RibbonControlService.DismissPopup attached event.
Namespace: Microsoft.Windows.Controls.Ribbon
Assembly: RibbonControlsLibrary (in RibbonControlsLibrary.dll)
Syntax
'Declaration
Protected Overrides Sub OnClick
protected override void OnClick()
protected:
virtual void OnClick() override
abstract OnClick : unit -> unit
override OnClick : unit -> unit
protected override function OnClick()
Remarks
This method calls the base method and then raises the RibbonControlService.DismissPopup attached event.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.