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.IElementConfiguration<Xamarin.Forms.BoxView>
Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._BoxViewRenderer))
A used to draw a solid colored rectangle.
BoxView is a useful stand-in for images or custom elements when doing initial prototyping. BoxView has a default size request of 40x40. If you need a different size, assign the and properties.
XAML for Xamarin.Forms supports the following properties for the class:
The example below creates a red with the default width and height.
]]>
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 BoxView 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 the color which will fill the rectangle. This is a bindable property.
The color that is used to fill the rectangle. The default 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
Identifies the Color bindable property.
Method
2.0.0.0
Xamarin.Forms.IPlatformElementConfiguration<T,Xamarin.Forms.BoxView>
Xamarin.Forms.IConfigPlatform
To be added.
Returns the platform-specific instance of this , on which a platform-specific method may be called.
To be added.
To be added.
Method
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Obsolete("Use OnMeasure")
Xamarin.Forms.SizeRequest
To be added.
To be added.
Method that is called when a size request is made to the box view.
To be added.
To be added.