1
如何水平设置图像。我尝试使用列表框,它垂直滚动,即使ScrollViewer.VerticalScrollBarVisibility =“禁用”有没有什么方法可以设置图像或任何控制使用?,请帮帮我。在Windows Phone 8中使用图像预览的水平图像视图
如何水平设置图像。我尝试使用列表框,它垂直滚动,即使ScrollViewer.VerticalScrollBarVisibility =“禁用”有没有什么方法可以设置图像或任何控制使用?,请帮帮我。在Windows Phone 8中使用图像预览的水平图像视图
您必须设置ItemPanelTemplate
第一,试试这个
<ListBox x:Name="myLLS" ScrollViewer.HorizontalScrollBarVisibility="Visible">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<!-- here is where we change stuff -->
<StackPanel Orientation="Horizontal"></StackPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Red" BorderThickness="1,1,1,1">
<StackPanel Height="100" Background="#FF00044D">
<!-- Your Image collection from your ViewModel -->
</StackPanel>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
谢谢老兄其工作 – Madhu 2014-10-09 11:08:50