我正在为 Windows Phone 7.1 编写程序并使用组件图像,我在其中拉伸图像 - 它变得模糊。我已经研究过此类问题 - 似乎 UseLayoutRounding="True" 应该有所帮助,但它对我没有帮助。这是代码:
<Grid x:Name="LayoutRoot" UseLayoutRounding="True" Background="Transparent">
<controls:Panorama x:Name="mainPanorama" Title="life rpg" SelectionChanged="Panorama_SelectionChanged_1">
<controls:Panorama.Background>
<ImageBrush ImageSource="Imgs/bg.jpg"/>
</controls:Panorama.Background>
<controls:PanoramaItem Header="main" Tag="main" >
<StackPanel Name="mainPanel">
<StackPanel Orientation="Horizontal">
<Image HorizontalAlignment="Left" Height="165" VerticalAlignment="Top" Width="165" Source="picture.png" Margin="0 0 20 0"/>
<Image Name="swordImg" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="50" Source="Imgs/swords/swordLVL1.png" Stretch="Fill" />
<Image Name="armorImg" HorizontalAlignment="Left" Height="100" VerticalAlignment="Top" Width="100" Source="Imgs/armors/armorLVL1.png" Stretch="Uniform" />
<Image Name="shieldImg" HorizontalAlignment="Left" Height="150" VerticalAlignment="Top" Width="150" Source="Imgs/shields/shieldLVL1.png" Stretch="UniformToFill" />
</StackPanel>
<!--LayoutRoot is the root grid where all page content is placed-->