2013-07-18 11 views
0

첫 번째 페이지 바로 위에있는 파노라마보기의 3 페이지에서 사각형 또는 이미지를 확장 할 수 있습니까?하지만 다른 페이지 위로 확장하고 싶습니다.3 페이지 이상의 파노라마 확장 사각형

은 내가, 파노라마 또는 파노라마 항목이나 사각형, 나는 알 3을 시도했지만 아직도 내가 이상이 코드를 시도


<phone:PanoramaItem Header="third item" Orientation="Horizontal"> 
      <!--Double wide Panorama with large image placeholders--> 
      <Grid > 
       <ListBox x:Name="lst"> 
        <ListBox.ItemTemplate> 
         <DataTemplate> 
          <Rectangle Margin="10" Width="200" Height="200" Fill="Red"/> 
         </DataTemplate> 
        </ListBox.ItemTemplate> 
        <ListBox.ItemsPanel> 
         <ItemsPanelTemplate> 
          <StackPanel Orientation="Horizontal"/> 
         </ItemsPanelTemplate> 
        </ListBox.ItemsPanel> 
       </ListBox> 
      </Grid> 

     </phone:PanoramaItem> 

작동하지 않는 설정해야 어떤 항목 마진 또는 폭 확실하지 않다 ,하지만 아무것도 표시되지 않습니다?

답변

0

예 가능합니다. panoramaitem에 그냥 Orientation = "Horizontal"을 넣고 listbox를 사용하는 경우 stackpanal orientation horizontala로 itempanel을 설정하면됩니다.

<controls:PanoramaItem Orientation="Horizontal" Header="item1"> 
      <Grid > 
       <ListBox x:Name="lst"> 
        <ListBox.ItemTemplate> 
         <DataTemplate> 
           <Image Margin="10" Source="{Binding}" Width="200" Height="200"/> 
         </DataTemplate> 
        </ListBox.ItemTemplate> 
        <ListBox.ItemsPanel> 
         <ItemsPanelTemplate> 
          <StackPanel Orientation="Horizontal"/> 
         </ItemsPanelTemplate> 
        </ListBox.ItemsPanel> 
       </ListBox> 
      </Grid> 
     </controls:PanoramaItem>