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>

4

1 回答 1

0

只要确保你container所在的scrollViewer地方有足够的height或设置它auto

于 2013-06-24T05:43:14.937 回答