2013-06-23 181 views
0

這是我的scrollviewerr滾動一個網格。我在我的手機測試,當我滾動頁面向上或向下回至第一位置:(我怎樣才能解決這個問題呢?滾動查看器回滾到舊位置後滾動

<ScrollViewer Grid.Row="2" 
       Grid.RowSpan="3" 
       Grid.ColumnSpan="3" Margin="0" 
       VerticalAlignment="Top" 
       VerticalScrollBarVisibility="Visible" 
       Background="#CC000000" 
       HorizontalScrollBarVisibility="Disabled"> 
     <!--ContentPanel - place additional content here--> 
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" > 

     <Image Height="100" Width="100" Margin="10,10,346,560" Source="/HoroscopeImages/bachduong.png"/> 
     <TextBlock HorizontalAlignment="Left" Margin="10,115,0,0" TextWrapping="Wrap" Text="Bạch Dương" VerticalAlignment="Top" Height="36" Width="117"/> 
     <TextBlock HorizontalAlignment="Left" Margin="10,151,0,0" TextWrapping="Wrap" Text="(21/3 - 19/4" VerticalAlignment="Top" Height="36" Width="117"/> 
     <Image Height="100" Width="100" Margin="169,10,187,560" Source="/HoroscopeImages/kimnguu.png"/> 

    </Grid> 

回答

0

只是確保該container其中ur scrollViewer謊言有足夠的height或設置它auto