You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.
Mark Smith edited this page Sep 1, 2016
·
2 revisions
ImageResourceConverter
The ImageResourceConverter value converter can be used in XAML with a binding to provide an ImageSource to an Image control. The converter expects the value parameter to be the resource ID to load and the parameter parameter to be an optional prefix which overrides the Prefix property. If neither is supplied then the converter assumes that the value has the entire resource ID specified. The targetType must always be typeof(ImageSource).
Note: this converter is also a markup extension and can be created inline with the binding, or stored in a resource to share it with multiple bindings.
Properties
Prefix : an optional prefix to add to the generated value to identify the assembly, namespace and folder where the final embedded resource is located. You can get this value from the Resource Id property for the Embedded Resource properties in the IDE.