Xamarin.Forms.Core
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.View
Xamarin.Forms.IButtonController
Xamarin.Forms.IElementConfiguration<Xamarin.Forms.Button>
Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._ButtonRenderer))
A button that reacts to touch events.
The following example shows a basic use:
Constructor
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Initializes a new instance of the Button class.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Color
Gets or sets a color that describes the border stroke color of the button. This is a bindable property.
The color that is used as the border stroke color; the default is .
This property has no effect if is set to 0. On Android this property will not have an effect unless is set to a non-default color.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the BorderColor bindable property.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Int32
Gets or sets the corner radius of the border. This is a bindable property.
The corner radius of the button border; the default is 5.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the BorderRadius bindable property.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Double
Gets or sets the width of the border. This is a bindable property.
The width of the button border; the default is 0.
Set this value to a non-zero value in order to have a visible border.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the BorderWidth bindable property.
Event
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.EventHandler
Occurs when the Button is clicked.
The user may be able to raise the clicked event using accessibility or keyboard controls when the Button has focus.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Windows.Input.ICommand
Gets or sets the command to invoke when the button is activated. This is a bindable property.
A command to invoke when the button is activated. The default value is .
This property is used to associate a command with an instance of a button. This property is most often set in the MVVM pattern to bind callbacks back into the ViewModel. is controlled by the Command if set.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Object
Gets or sets the parameter to pass to the Command property. This is a bindable property.
A object to pass to the command property. The default value is .
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the CommandParameter bindable property.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the Command bindable property.
Property
2.0.0.0
Xamarin.Forms.Button+ButtonContentLayout
To be added.
To be added.
To be added.
Field
2.0.0.0
Xamarin.Forms.BindableProperty
To be added.
To be added.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Font
Gets or sets the Font for the Label text. This is a bindable property.
The value for the button. The default is , which represents the default font on the platform.
Property
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.FontAttributes
Gets a value that indicates whether the font for the button text is bold, italic, or neither.
To be added.
To be added.
Field
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the FontAttributes property.
To be added.
Property
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.String
Gets the font family to which the font for the button text belongs.
To be added.
To be added.
Field
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the FontFamily property.
To be added.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the Font bindable property.
Property
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.FontSizeConverter))
System.Double
Gets or sets the size of the font of the button text.
To be added.
To be added.
Field
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the FontSize property.
To be added.
Property
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.FileImageSource
Gets or sets the optional image source to display next to the text in the Button. This is a bindable property.
To be added.
To be added.
Field
1.2.0.0
1.2.2.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the Image bindable property.
Method
2.0.0.0
Xamarin.Forms.IPlatformElementConfiguration<T,Xamarin.Forms.Button>
Xamarin.Forms.IConfigPlatform
To be added.
To be added.
To be added.
To be added.
Method
1.2.2.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
Method that is raised when the binding context changes.
Application developers who override this method in derived classes must call this method in the base class, .
Method
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
The name of the changed property.
Call this method from a child class to notify that a change happened on a property.
A Button triggers this by itself. An inheritor only need to call this for properties without BindableProperty as backend store.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.String
Gets or sets the Text displayed as the content of the button. This is a bindable property.
The text displayed in the button. The default value is .
Changing the Text of a button will trigger a layout cycle.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Color
Gets or sets the for the text of the button. This is a bindable property.
The value.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the TextColor bindable property.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the Text bindable property.
Method
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Void
Sends a click event.
To be added.