Xamarin跨平台UWP图像丢失
问题描述:
我正在Xamarin跨平台项目中工作,如果我将图像放置在子文件夹中而不将其加载到屏幕上。
I am working on Xamarin cross platform project where if I placed the images inside the sub folder it is not loading on the screen.
请参考我的代码和文件夹结构以及属性
Please refer my code and folder structure along with properties
答
将图片文件夹放置在资产文件夹下,如下所示:
Put your Images folder under Assets Folder like this:
Assets/Images/*.png
,如果您使用的是本地化,则请像这样:
and if you are using Localizing make like this:
Assets/Images/en/*.png
Assets/Images/another language/*.png
有关更多信息,您可以检查此使用图片
i希望能回答您的问题。
for more information you can check this Working with Images i hope that answer you question.