In This Article

BarImageProvider Class

Represents a service that can provide images for bar controls.

public class BarImageProvider : IBarImageProvider
Inheritance:
object object
Implements:
IBarImageProvider

Constructors

BarImageProvider()

Initializes an instance of the class.

public BarImageProvider()

Methods

GetImageSource(string, BarImageOptions)

Returns an ImageSource for the specified bar control key and set of options.

public ImageSource GetImageSource(string key, BarImageOptions options)
Parameter Type Description
key string

A string that uniquely identifies a bar control.

options BarImageOptions

A BarImageOptions that indicates the image options.

Returns

ImageSource:

An ImageSource for the specified bar control key and set of options.

GetImageSource(string, BarImageSize)

Returns an ImageSource for the specified bar control key and size.

public ImageSource GetImageSource(string key, BarImageSize size)
Parameter Type Description
key string

A string that uniquely identifies a bar control.

size BarImageSize

A BarImageSize that indicates the image size.

Returns

ImageSource:

An ImageSource for the specified bar control key and size.

Register(string, Func<BarImageOptions, ImageSource>)

Registers an image factory function for a key.

public void Register(string key, Func<BarImageOptions, ImageSource> factory)
Parameter Type Description
key string

A string that uniquely identifies a bar control.

factory Func<BarImageOptions, ImageSource>

A factory method that examines BarImageOptions to return an ImageSource.

Unregister(string)

Unregisters an image factory function for a key.

public bool Unregister(string key)
Parameter Type Description
key string

A string that uniquely identifies a bar control.

Returns

bool:

true if an image factory function was removed; otherwise, false.

Inherited Members