ProgressBar

Inheritance: Element -> NavigableElement -> VisualElement -> View -> InputView Xamarin.Forms documentation: ProgressBar API / Guide

For details on how the control actually works, please refer to the Xamarin.Forms documentation.

Constructors

ConstructorsDescription

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

PropertiesDescription

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 #

let progressBarRef = ViewRef<ProgressBar>()

ProgressBar(0.5)
    .reference(progressBarRef)

Last updated