I am trying to optimize my Xamarin.Forms
application and watching this video: Optimizing App Performance with Xamarin.Forms it mentioned the following:
Load Images from Content instead of Resource
Looking at this link: Working with Images I can see no mention of loading from Content only loading from Resources
So my question is what does "Load images from Content" this mean? and how do I do this?
Instead of embedding images as resources into your assembly, add them as bundled content in your project. They will then be packaged into your app (.apk
/ .ipa
) as content you can load from the "file system".
i.e. Do not use Embedded Resource
but Content
, Bundle Resource
, AndroidResouce
, etc... as the build type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With