DANIEL VAUGHAN

A Better Way To Share Image Assets In Xamarin Forms

13 Nov 2014

I’ve just published the fifth installment of my Calcium for Xamarin.Forms series.

In this article you see how to share and consume image files between projects in a unified manner. You see how to employ a T4 template to copy image files from a shared project into iOS and Android resources directories; to add them to your iOS and Android projects; and to set the Build Action of the images. Finally, you see how a custom markup extension is used to translate image resource URLs so that images can be referenced in XAML and correctly resolved regardless of platform.

Read on…