Xamarin.Forms.Button Members

The members of Xamarin.Forms.Button are listed below.

See Also: Inherited members from Xamarin.Forms.View

Public Constructors

Initializes a new instance of the Button class.

Public Fields

static readonly
BorderColorPropertyBindableProperty. Backing store for the BorderColor bindable property.
static readonly
BorderRadiusPropertyBindableProperty. Backing store for the BorderRadius bindable property.
static readonly
BorderWidthPropertyBindableProperty. Backing store for the BorderWidth bindable property.
static readonly
CommandParameterPropertyBindableProperty. Backing store for the CommandParameter bindable property.
static readonly
CommandPropertyBindableProperty. Backing store for the Command bindable property.
static readonly
FontAttributesPropertyBindableProperty. Backing store for the FontAttributes property.
static readonly
FontFamilyPropertyBindableProperty. Backing store for the FontFamily property.
static readonly
FontPropertyBindableProperty. Backing store for the Font bindable property.
static readonly
FontSizePropertyBindableProperty. Backing store for the FontSize property.
static readonly
ImagePropertyBindableProperty. Backing store for the Image bindable property.
static readonly
TextColorPropertyBindableProperty. Backing store for the TextColor bindable property.
static readonly
TextPropertyBindableProperty. Backing store for the Text bindable property.

Public Properties

BorderColorColor. Gets or sets a color that describes the border stroke color of the button. This is a bindable property.
BorderRadiusint. Gets or sets the corner radius of the border. This is a bindable property.
BorderWidthdouble. Gets or sets the width of the border. This is a bindable property.
CommandSystem.Windows.Input.ICommand. Gets or sets the command to invoke when the button is activated. This is a bindable property.
CommandParameterobject. Gets or sets the parameter to pass to the Command property. This is a bindable property.
FontFont. Gets or sets the Font for the Label text. This is a bindable property.
FontAttributesFontAttributes. Gets a value that indicates whether the font for the button text is bold, italic, or neither.
FontFamilystring. Gets the font family to which the font for the button text belongs.
FontSizedouble. Gets or sets the size of the font of the button text.
ImageFileImageSource. Gets or sets the optional image source to display next to the text in the Button. This is a bindable property.
Textstring. Gets or sets the Text displayed as the content of the button. This is a bindable property.
TextColorColor. Gets or sets the Xamarin.Forms.Color for the text of the button. This is a bindable property.

Protected Methods

override
OnBindingContextChanged()
Overriden
override
OnPropertyChanging(string)
Call this method from a child class to notify that a change happened on a property.

Public Events

ClickedOccurs when the Button is clicked.

Explicitly Implemented Interface Members