Image.MemoryPolicy Property
Specifies a policy to control the loading and unloading of the image. The two common policies are PreloadRetain
, the default which loads images at startup and keeps them loaded, and UnloadUnused
which keeps only used images loaded.
For dynamic images, such as those coming from HTTP, you should use the UnloadUnused
policy, otherwise you'll continue to consume more memory as more images are loaded. For example:
<Image Url="{imageLocation}" MemoryPolicy="UnloadUnused"/>
Location
- Namespace
- Fuse.Controls
- Package
- Fuse.Controls.Primitives 2.9.1