Windows phone 7 Wrappanel赢得';卷轴

Windows phone 7 Wrappanel赢得';卷轴,windows-phone-7,windows-phone-8,Windows Phone 7,Windows Phone 8,我已经设置了ScrollViewer的高度,但它不会滚动。共有9幅图片。Wrappanel设置为每行显示2个图像。但这仅显示3行(6幅图像)。有什么问题吗 <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Height="500"> <toolkit:WrapPanel Margin="-3,-20,12,-3" Background="W

我已经设置了ScrollViewer的高度,但它不会滚动。共有9幅图片。Wrappanel设置为每行显示2个图像。但这仅显示3行(6幅图像)。有什么问题吗

<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Height="500"> <toolkit:WrapPanel Margin="-3,-20,12,-3" Background="White" ItemHeight="200" Orientation="Horizontal" ItemWidth="200" Height="600" Width="480" FlowDirection="LeftToRight"> <Image Height="160" Name="image11" Source="/ImgBadges/Badge_1.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image12" Source="/ImgBadges/Badge_2.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image13" Source="/ImgBadges/Badge_3.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image14a" Source="/ImgBadges/Badge_3.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image15b" Source="/ImgBadges/Badge_3.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image16c" Source="/ImgBadges/Badge_3.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image17d" Source="/ImgBadges/Badge_3.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image18e" Source="/ImgBadges/Badge_3.png" Stretch="UniformToFill" Width="160" /> <Image Height="160" Name="image19f" Source="/ImgBadges/Badge_3.png" Stretch="UniformToFill" Width="160" /> </toolkit:WrapPanel> </ScrollViewer>
您已将
WrapPanel
的高度强制为600。将高度更改为仅在
ScrollViewer
上设置,以便
WrapPanel
在滚动时有无限空间添加更多项目:

<ScrollViewer Height="500" ...>
    <toolkit:WrapPanel ItemHeight="200" Orientation="Horizontal" ItemWidth="200" Width="480" FlowDirection="LeftToRight">
          ...
    </toolkit:WrapPanel>
</ScrollViewer>

...

小结:删除封套的高度,以便可以添加更多的项目。

您已将
封套的高度强制为600。将高度更改为仅在
ScrollViewer
上设置,以便
WrapPanel
在滚动时有无限空间添加更多项目:

<ScrollViewer Height="500" ...>
    <toolkit:WrapPanel ItemHeight="200" Orientation="Horizontal" ItemWidth="200" Width="480" FlowDirection="LeftToRight">
          ...
    </toolkit:WrapPanel>
</ScrollViewer>

...

小结:删除WrapPanel的高度,以便向其中添加更多项目。

什么是ScrollViewer的父容器?什么是ScrollViewer的父容器?