TX Text Control .NET for Windows Forms

ButtonClick Event

Event|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Occurs as the primary button is clicked.

Syntax

public event EventHandler ButtonClick;

Examples

The following example records useful context when button click occurs.

ribbonSplitButton.ButtonClick += (sender, e) =>
{
    Console.WriteLine($"Button Click at {DateTime.Now:u}");
};