BoxView
Inheritance: Element -> NavigableElement -> VisualElement -> View\ Xamarin.Forms documentation: BoxView API / Guide
For details on how the control actually works, please refer to the Xamarin.Forms documentation.
Constructors
| Constructors | Description |
|---|---|
| BoxView(light: FabColor, ?dark: FabColor) | Define a BoxView widget with its fill color depending if light or dark mode |
Properties
| Properties | Description |
|---|---|
| cornerRadius(value: float) | Sets the corner radius |
| reference(value: ViewRef\ |
Sets a ViewRef instance to retrieve the Xamarin.Forms.BoxView instance associated to this widget |
Usages
BoxView(light = Color.Red.ToFabColor(), dark = Color.Blue.ToFabColor())
.cornerRadius(10.)
Get access to the underlying Xamarin.Forms.BoxView #
let boxViewRef = ViewRef<BoxView>()
BoxView(Color.Red.ToFabColor())
.reference(boxViewRef)