关于一段silverlight程序,在blend中可以预览但是运行时不显示背景。求解释。。图片路径没问题
<UserControlxmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x=...
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MySchool.MainPage"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" >
<Grid.Background>
<ImageBrush ImageSource="/Sources/Images/Windows7_Vol_5_No_14.jpg" Stretch="Fill" />
</Grid.Background>
</Grid>
</UserControl> 展开
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MySchool.MainPage"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" >
<Grid.Background>
<ImageBrush ImageSource="/Sources/Images/Windows7_Vol_5_No_14.jpg" Stretch="Fill" />
</Grid.Background>
</Grid>
</UserControl> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询