Image

Displays an image from a symbol, bundle asset, or URL.
public class Image : Control

Properties

FadesIn

Whether a URL image cross-dissolves in once it arrives, instead of popping.

Type: bool

public bool FadesIn { get; set; }

Fallback

A symbol or bundle image shown when a URL source fails to load, or null to keep the placeholder.

Type: ImageSource?

public ImageSource? Fallback { get; set; }

Placeholder

A symbol or bundle image shown while a URL source is still loading, or null for none.

Type: ImageSource?

public ImageSource? Placeholder { get; set; }

PrefersMulticolor

Whether a symbol with a built-in multicolor rendition uses it.

Type: bool

public bool PrefersMulticolor { get; set; }

Source

Where the image is loaded from.

URL sources load asynchronously, so give them an explicit Width/Height.

Type: Bindable<ImageSource?>

public Bindable<ImageSource?> Source { get; set; }

Stretch

How the image is scaled to fill its bounds.

Type: Stretch

public Stretch Stretch { get; set; }

SymbolColors

Colors for the symbol's layers: one gives the hierarchical look, several assign the palette explicitly.

Type: IList<Color>

public IList<Color> SymbolColors { get; }

SymbolEffect

An ambient effect the symbol performs continuously while set.

Type: SymbolEffect

public SymbolEffect SymbolEffect { get; set; }

SymbolScale

The symbol's relative scale within its font metrics.

Type: SymbolScale

public SymbolScale SymbolScale { get; set; }

SymbolSize

The symbol's point size, or NaN for its natural size.

Type: double

public double SymbolSize { get; set; }

SymbolValue

A value from 0 to 1 driving a variable symbol's layers, such as a wifi or speaker level, or NaN for none.

Type: Bindable<double>

public Bindable<double> SymbolValue { get; set; }

SymbolWeight

The symbol's stroke weight, or null for its default.

Type: FontWeight?

public FontWeight? SymbolWeight { get; set; }

Methods

PlaySymbolEffect

Plays a symbol effect once, on top of any ambient SymbolEffect.

public void PlaySymbolEffect(
  SymbolEffect effect)
ParameterSummary
SymbolEffect effectThe effect to perform.