I have a richtextbox and when is full I want automatically scroll to the bottom, It is possible? Do this with xaml?
相关问题
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
- How to properly change a resource dictionary
RichTextBox
has aScrollToEnd
method that could be called in the Codebehind. I don't know a way to do this in XAML only.By using
ScrollViewer.ScrollChanged
routed event, and writing some code (for example,richTextBox1.ScrollToEnd()
), you may be able to do what you want.Assuming your
RichTextBox
is namedOutput
, attach this method to itsTextChanged
event: