Provides an image fetched via HTTP which can be displayed by the Image control.

Note Image provides a shorthand for this, using its Url property.

Example

<Image>
    <HttpImageSource Url="https://upload.wikimedia.org/wikipedia/commons/0/06/Kitten_in_Rizal_Park%2C_Manila.jpg" />
</Image>

To cache the image to the disk, you can add DiskCache attribute and set it to true so that the next time we display an image it will no longer be downloaded from the network but use from disk instead.

Location

Namespace
Fuse.Resources
Package
Fuse.Elements 2.9.1
Show Uno properties and methods

Interface of HttpImageSource

DiskCache : bool ux

Determines whether we use the disk cache to store downloaded images so that the next time we display an image it will no longer be downloaded from the network. Default is false.

Inherited from ImageSource

Inherited from PropertyObject

Inherited from object

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The ux:Global attribute creates a global resource that is accessible everywhere in UX markup.