WP7 可滚动文本框
我正在寻找 Windows Phone 7 上可滚动 TextBox 的解决方案。
此时我有这个 XAML 代码:
<ScrollViewer
Height="250"
VerticalScrollBarVisibility="Auto"
Padding="0"
Margin="0">
<TextBox
x:Name="Description"
Text="{Binding Path=LocationInfo.Description, Mode=TwoWay}"
IsReadOnly="{Binding Path=LocationInfo.IsReadOnly}"
AcceptsReturn="True"
TextWrapping="Wrap"
Height="500"/>
</ScrollViewer>
它可以工作,但是当用户键入并且 TextBox 的视觉部分已满时,它不会自动滚动。用户必须手动滚动才能看到他写的部分。我需要做一些自动滚动行为。
I am looking for solution of scrollable TextBox on Windows Phone 7.
At this moment I have this XAML code:
<ScrollViewer
Height="250"
VerticalScrollBarVisibility="Auto"
Padding="0"
Margin="0">
<TextBox
x:Name="Description"
Text="{Binding Path=LocationInfo.Description, Mode=TwoWay}"
IsReadOnly="{Binding Path=LocationInfo.IsReadOnly}"
AcceptsReturn="True"
TextWrapping="Wrap"
Height="500"/>
</ScrollViewer>
It works, but when user is typing and visual part of TextBox is full filled, it does not autoscroll. User has to scroll manualy to see the part where he writes.. I need to do some autoscroll behaviour.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
A也在寻找这个问题的解决方案...我的结论是没有好的解决方案。我的最终解决方案与您的类似:
Microsoft必须解决此问题...
另请参阅:
http://forums.create.msdn.com/forums/p/69286/430208.aspx
WP7 中的可滚动文本框
A was also looking for a solution to this problem... My conclusion was that there is no good solution. My final solution is similar to yours:
Microsoft has to solve this issue...
See also:
http://forums.create.msdn.com/forums/p/69286/430208.aspx
Scrollable TextBox in WP7