Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

ImageResourceExtension

Mark Smith edited this page Aug 29, 2016 · 1 revision

ImageResourceExtension

The ImageResourceExtension markup extension lets XAML access images stored as embedded resources. When used, it locates and reads an embedded resource and returns an ImageSource.

Properties

  • AssemblyResolverType : the System.Type of a class contained in the same assembly as the embedded resource. If not set, this defaults to the assembly your App class is defined in.

  • Source : the string-based ResourceID for the embedded resource. This is commonly the full namespace + path + name. This is the default value for the markup extension.

Example

  <Image Source="{inf:ImageResource SmallLogo}" ... />