在松散的XAML中滚动文本块/区域/Div
有没有办法在松散的xaml中显示可滚动文本?HTML中的等价物是在松散的XAML中滚动文本块/区域/Div,xaml,scroll,Xaml,Scroll,有没有办法在松散的xaml中显示可滚动文本?HTML中的等价物是 <div style="overflow:scroll">some long bit of text here</div> 这里有一些长文本 你能用宽松的xaml来做这个吗 从我目前的实验来看,在松散的xaml中: 不能使用TextBox--它必须是TextBlock TextBlock似乎没有任何可滚动的样式设置 在松散的xaml中似乎不允许使用ScrollViewer 非常感谢您的帮助。您可以使用文
<div style="overflow:scroll">some long bit of text here</div>
这里有一些长文本
你能用宽松的xaml来做这个吗
从我目前的实验来看,在松散的xaml中:
非常感谢您的帮助。您可以使用文本框滚动文本,例如:
<TextBox Text="{Binding YourText}" VerticalContentAlignment="Top"
TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"
MaxHeight="200" MaxWidth="300"/>
如果文本不适合显示区域,则会显示滚动条。
<ScrollViewer Height="239" VerticalScrollBarVisibility="Auto">
<toolkit:PhoneTextBox x:Name="newcTextBox" AcceptsReturn="True" TextWrapping="Wrap"/>
</ScrollViewer>