githubEdit

ProgressBar

Inheritance: Elementarrow-up-right -> NavigableElementarrow-up-right -> VisualElementarrow-up-right -> Viewarrow-up-right -> InputViewarrow-up-right Xamarin.Forms documentation: ProgressBar APIarrow-up-right / Guidearrow-up-right

For details on how the control actually works, please refer to the Xamarin.Forms documentationarrow-up-right.

Constructors

Constructors
Description

ProgressBar(progress: float)

Define a ProgressBar widget with the progress value (between 0.0 and 1.0)

ProgressBar(progress: float, duration: int, easing: Easing)

Define a ProgressBar widget with an animated change of the progress value (between 0.0 and 1.0)

Properties

Properties
Description

progressColor(light: FabColor, ?dark: FabColor)

Sets the progress bar color depending if light or dark mode

reference(value: ViewRef<ProgressBar>)

Sets a ViewRef instance to retrieve the Xamarin.Forms.ProgressBar instance associated to this widget

Usages

ProgressBar(0.5)
    .progressColor(Color.Red.ToFabColor(), dark = Color.Blue.ToFabColor())
    
ProgressBar(0.5, 1000, Easing.CubicInOut)
    .progressColor(Color.Red.ToFabColor(), dark = Color.Blue.ToFabColor())

Get access to the underlying Xamarin.Forms.ProgressBar #arrow-up-right

let progressBarRef = ViewRef<ProgressBar>()

ProgressBar(0.5)
    .reference(progressBarRef)

Last updated