新的wp7,我还没有最隐晦的想法,为什么文本块文本不包装?文本块文本不包裹在wp7应用
<Popup x:Name="EulaPopUp" IsOpen="False">
<Grid Background="White" Width="{Binding ElementName=LayoutRoot, Path=Width}" Height="{Binding ElementName=LayoutRoot, Path=Height}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="70"/>
</Grid.RowDefinitions>
<TextBlock Foreground="Black" Text="End User License Agreement" VerticalAlignment="Top" Grid.Row="0"/>
<ScrollViewer HorizontalAlignment="Left" Name="scrollViewer1" Width="{Binding ElementName=ContentPanel, Path=Width}" VerticalAlignment="Top" Margin="0,30,0,0" Grid.Row="1">
<TextBlock Name="eulaTxt" Width="{Binding ElementName=ContentPanel, Path=Width}" Text="{Binding Path=AppResources.EULA, Source={StaticResource AppResources} }" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" />
</ScrollViewer>
<Button Grid.Row="2" Content="I Agree" Background="Green" Height="70" HorizontalAlignment="Center" Margin="0" Name="EulaOK" VerticalAlignment="Bottom" Width="160" />
</Grid>
</Popup>
我绑定了元素的宽度,以便设备重新调整宽度时相应地进行调整。这是错的吗?我该如何解决它?谢谢
正确如果我错了,但MessageBox不是高度可定制的,我甚至不能在按钮上提供自定义标签,而且我也认为可以在消息框中显示的字符数量有限制? – 2011-12-23 06:50:35
如果您的EULA扩展了此限制,则会出现其他更严重的问题。 (另外,没有向EULA提供“不同意”按钮,使其无效) – 2011-12-23 07:25:29
老实说,它令人惊讶的wp7的一些限制,但考虑到它的微软毫不奇怪,我结束了与这家伙的可滚动文本块http:// blogs .msdn.com/b/priozersk/archive/2010/09/08/creation-scrollable-textblock-for-wp7.aspx和yeah同意按钮的逻辑也正在被解决。从应用程序的主要目标这么多不必要的干扰..叹息.. – 2011-12-23 07:29:59