【发布时间】:2016-10-29 00:44:44
【问题描述】:
大家好。我目前正在创建我的 Xamarin.Forms 项目的 UWP 部分,并且我想在其中放置一个 BackgroundImage。我注意到我在 Xamarin.Forms.Droid 中使用的图像没有显示在我的 UWP 上。为什么呢?
我使用了这段代码 BackgroundImage="filename.jpg"
【问题讨论】:
标签: xaml xamarin xamarin.forms uwp uwp-xaml
大家好。我目前正在创建我的 Xamarin.Forms 项目的 UWP 部分,并且我想在其中放置一个 BackgroundImage。我注意到我在 Xamarin.Forms.Droid 中使用的图像没有显示在我的 UWP 上。为什么呢?
我使用了这段代码 BackgroundImage="filename.jpg"
【问题讨论】:
标签: xaml xamarin xamarin.forms uwp uwp-xaml
检查图像并确保将图像放置在应用程序的根目录中,并使用Build Action: Content。
我建议你修改代码为:
BackgroundImage="//Assets/filename.jpg"
【讨论】: