-
Notifications
You must be signed in to change notification settings - Fork 27
Library Resources
BSick7 edited this page Jul 18, 2015
·
2 revisions
Format: lib://<library>$path/to/image.png
Fayde gives you the ability to embed resources such as images in a library. By default, Fayde will correctly resolve <Image Source="..." />
and <ImageBrush ImageSource="..." />
.
Given a library library1
configured in fayde.json
with a base: "lib/library1"
. Fayde resolves <Image Source="lib://library1$images/gear.png" />
to lib/library1/images/gear.png
.
This functionality can be used for other resources.
var appRelUrl: string = Fayde.TypeManager.resolveResource(new Uri("lib://library1$config.json"));