A Brush that fills a Shape with an image.

It works almost identically to Image, but is a Brush and can therefore not be used as a standalone element.

Example

The following example will fill a Circle with an image loaded from the file Portrait.png:

<Circle Width="160" Height="160">
    <ImageFill File="Portrait.png" />
</Circle>

Location

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

Interface of ImageFill

AutoLoad : bool ux

Auto fetch and display the image data from the network or disk. The default value is true. To enable lazy load of the image set this AutoLoad value to false, and then the later on set it to true to load the image. You can also use the LoadImage trigger action to fetch the Image.

Load uno

Load the image from Url or Disk

Reload uno

Reload the image from Url or Disk

Inherited from DynamicBrush

Inherited from Brush

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.