2014-04-10 27 views
0

我不知道该怎么做,我正确设置图像,并且在本地机器上运行调试时图像显示在应用程序中,但在设计师是空白的。HubSection背景图像不显示在设计器中 - Windows应用商店

 <HubSection Width="780" Margin="0,0,80,0"> 
      <HubSection.Background> 
       <ImageBrush ImageSource="Assets/Backgrounds/backGround.jpg" Stretch="UniformToFill" /> 
      </HubSection.Background> 
     </HubSection> 
+0

确切的代码对我的作品的前面。你有没有尝试关闭VS中的页面,清理/重建解决方案?试过另一个图像? – ChristiaanV

+0

@ChristiaanV是的工作,重新启动VS做的伎俩,谢谢 – erotavlas

回答

1

尝试要么添加一个正斜杠 '/' 或 'MS-APPX:///' 中的 “资产/背景/ background.jpg”

<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" /> 
+0

是不是一个正斜杠会指向目录的根? –