我必须在我的Windows手机应用中显示大量数据。但是当我调试它时,我只能在模拟器的屏幕上获得有限数量的数据。其余的被隐藏起来。我是否需要使用某些滑块选项,还是在Windows手机中使用时会自动显示?代码是:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"></Grid>
<TextBlock Height="100" HorizontalAlignment="Left" Margin="196,54,0,0" Name="textBlock1" Text="Astro App" VerticalAlignment="Top" Width="272" FontWeight="Bold" FontSize="48" Foreground="#FFAE720E" Grid.Row="1" />
<Image Height="148" HorizontalAlignment="Left" Margin="12,6,0,0" Name="image1" Stretch="Fill" VerticalAlignment="Top" Width="160" Source="/Astrology;component/Images/Mitra-Chinese-Astrology.png" Grid.Row="1" />
<TextBlock
TextWrapping="Wrap"
Text="The ruling planet for number nine people is Mars. These people are the most humanitarian and generous of all.They have a set of ideals, values and a foresight to visualize the betterment of the people of the society. These people have their own warmth and charisma or fascination. They usually make their impression. These people have high tolerance power and are bless with good imagination, and remarkable creativity. They do not have traces of selfishness store in them, with compassion, kindness, generosity, and humbleness ingrained in their temperament. They are at most of the times self sacrificing and romantic at heart. They can give up their favourites and share it with others as they have immense love for people around them. These people care a lot for people around them. They are distinguished and benevolent people. Adherent to discipline, they are open minded and straight forward in their approach. They amalgamate and orchestrate with everyone. They do not bother for spending their money, their valuable time, and energy if it is spend for the welfare of the society and its people. These people are temperamental, aggressive, and self-assured. They get entangled into the trap of anger and fury. They encounter mood swings. They are shy and unpredictable. These people are casual and careless with money matters. Lucky Days – Tuesday. Lucky Dates – 9th,18th,27th. Lucky Colours – Red. Lucky Stones – Coral. Lucky Metal – Copper"
Style="{StaticResource PhoneTextNormalStyle}"
Margin="6,160,0,0"
Grid.Row="1" />
答案 0 :(得分:3)
要解决此问题,您可以将TextBlock
打包到ScrollViewer
内 - 这样就可以让用户向上和向下滚动文字了。
但是......对于任何一个控件,WP7都有一个最大高度 - 我好像记得这是2048像素。如果您的控件高于此值,则不会渲染该控件的底部。如果是这种情况,那么您必须将文本分成较小的部分并使用单独的控件。