2013-12-17 42 views

回答

5

使所有的Facebook圖像的列表,並使用ListBox控件來顯示所有圖片用於滾動圖像的facebook 從左到右更改ListBox ItemsPanel屬性。

<ListBox 
    Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Auto"> 
     <ListBox.ItemsPanel> 
      <ItemsPanelTemplate> 
       <StackPanel Orientation="Horizontal" /> 
      </ItemsPanelTemplate> 
     </ListBox.ItemsPanel> 
    <ListBox.ItemTemplate> 
     <DataTemplate> 
      <Image Source="{Binding FacebookImages}" Stretch = "Fill"/> 
     </DataTemplate> 
    </ListBox.ItemTemplate> 
</ListBox> 
+0

謝謝Jaihind ..它的工作。 – Piya

1

呦滾動圖像的所有圖像左到右,你需要寫類似的東西:

<ScrollViewer> 
    <StackPanel Orientation="Horizontal"> 
     .. put all your <Image Source="..." /> 
    </StackPanel> 
</ScrollViewer>