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
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
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:
trueif an image factory function was removed; otherwise,false.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()