底部的Verticall滚动RichTextBox [WPF] [英] Verticall scroll richtextbox on the bottom [WPF]

查看:150
本文介绍了底部的Verticall滚动RichTextBox [WPF]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个richtextbox,当我填满时我想自动滚动到底部,这可能吗?用xaml这样做吗?

I have a richtextbox and when is full I want automatically scroll to the bottom, It is possible? Do this with xaml?

推荐答案

通过使用

By using ScrollViewer.ScrollChanged routed event, and writing some code (for example, richTextBox1.ScrollToEnd()), you may be able to do what you want.

这篇关于底部的Verticall滚动RichTextBox [WPF]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆