The Button control providing an event for handling clicks.
var button = new Button();
Root.Children.Add(button.Visual);
button.X = 0;
button.Y = 0;
button.Width = 100;
button.Height = 50;
button.Text = "Hello MonoGame!";
int clickCount = 0;
button.Click += (_, _) =>
{
clickCount++;
button.Text = $"Clicked {clickCount} times";
};