forked from xamarinhq/xamu-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
ImageResourceExtension
Mark Smith edited this page Aug 29, 2016
·
1 revision
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
.
-
AssemblyResolverType
: theSystem.Type
of a class contained in the same assembly as the embedded resource. If not set, this defaults to the assembly yourApp
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.
<Image Source="{inf:ImageResource SmallLogo}" ... />