Button


Summary

Represents the button.

Syntax

public class Button : Control

Members

NameTypeSummary
BorderColor PropertyGets or sets the border line color. Check the Color class for the ARGB (alpha, red, green, blue) color values, or use the strings Color.Red, Color.FromName("Red"), Color.FromArgb(255, 0, 0), Color.FromHex("#ff0000"), "Red", "#ff0000".
BorderThickness PropertyGets or sets the border thickness.
Button MethodInitializes a new instance of the Button class.
Click EventOccurs when the button is clicked.
Content PropertyGets or sets the content.
CornerRadius PropertyGets or sets the border corner radius. Property value can be set using CornerRadius, number, or a string: new CornerRadius(5), new CornerRadius(1, 2, 3, 4).
Text PropertyGets or sets the text.
Reference