Windows store apps 轮毂部分背景图像不显示';t出现在designer-Windows应用商店中
我不确定该怎么办,我正确设置了映像,当我在本地计算机上运行调试时,映像会显示在应用程序中,但在设计器中它是空白的Windows store apps 轮毂部分背景图像不显示';t出现在designer-Windows应用商店中,windows-store-apps,Windows Store Apps,我不确定该怎么办,我正确设置了映像,当我在本地计算机上运行调试时,映像会显示在应用程序中,但在设计器中它是空白的 <HubSection Width="780" Margin="0,0,80,0"> <HubSection.Background> <ImageBrush ImageSource="Assets/Backgrounds/backGround.jpg" Stretch="Unifor
<HubSection Width="780" Margin="0,0,80,0">
<HubSection.Background>
<ImageBrush ImageSource="Assets/Backgrounds/backGround.jpg" Stretch="UniformToFill" />
</HubSection.Background>
</HubSection>
尝试在“assets/backgrounds/background.jpg”前面添加正斜杠“/”或“ms appx://”
准确的代码适合我。您是否尝试过在VS中关闭页面,清理/重建解决方案?尝试了另一个图像?@ChristiaanV是的,成功了,重新启动VS成功了,谢谢Saren,正斜杠不会指向目录的根吗?
<HubSection Width="780" Margin="0,0,80,0">
<HubSection.Background>
<ImageBrush ImageSource="/Assets/Backgrounds/backGround.jpg" Stretch="UniformToFill" />
</HubSection.Background>
</HubSection>
<ImageBrush ImageSource="ms-appx:///Assets/Backgrounds/backGround.jpg" Stretch="UniformToFill" />