Skip to Content

Spinner

An indeterminate progress spinner that continuously rotates a fixed arc. The animation is driven by an internal AnimationController and requires Renderer.Tick to be called each frame. Maps to an SpinnerElement native visual that draws the arc using UIToolkit’s MeshGenerationContext.

Constructor

Spinner

Creates an Spinner element.

ParameterDescription
sizeDiameter in logical pixels. Defaults to 32.
strokeWidthArc thickness in logical pixels. Defaults to 4.
colorArc color. Null means no explicit color is applied.
speedSeconds per full rotation. Defaults to 1.
keyAn optional key for reconciliation identity.

Properties

Color

The color of the arc. Null applies no explicit color (inherits from context).

Size

The diameter of the spinner in logical pixels. Defaults to 32.

Speed

Duration of one full rotation in seconds. Defaults to 1.

StrokeWidth

The thickness of the spinning arc in logical pixels. Defaults to 4.

Methods

ShouldRebuild

Last updated on