Redth / ResizetizerNT

Add SVG's and PNG's to your shared Xamarin Project
MIT License
318 stars 31 forks source link

Question: Can images be accessed within code? #14

Closed JulesMoorhouse closed 4 years ago

JulesMoorhouse commented 4 years ago

Can images be accessed within code rather than a xaml file?

I can see that the images are generated in the build folder, but I don't believe these will be accessible in code.

Obviously the Android Resource.designer.cs will just pick up images added to the Android project, likewise iOS are added to the bundle.

Edit: I mean in platform code, within say a custom renderer.

Redth commented 4 years ago

Sure, the images are just resources in their respective projects as you would normally include them. There is nothing special or proprietary about how they are included on each platform, it's just that they are automatically included for you.