AutoScroll to the End after each Log entry #22
Unanswered
KayakFisher205
asked this question in
Q&A
Replies: 2 comments 8 replies
-
Hi i have posted @stackoverflow a solution for wpf richtextbox autoscroll. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I noticed when the form does not have focus or I lock my desktop (which the form might not have focus), the autoscroll isn't working. What would the code be to add to autoscroll to the bottom when the form got focus? I have not used WPF at all. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tested the Samples (WinFormsHostNet50Sample, WpfNet50Sample, and WpfNet462Sample) and when the Log reached the bottom of the form, it does not scroll. When I use Serilog to log to the Console, it does. I'm using the Hybrid WPF/Winforms Example (WinFormsHostNet50Sample), so I can't use a trigger or Event (that I know of). If its possible to enable ScrollToEnd() somehow, or give the option to reverse the log (richtextbox.Text="new Log data" + richtextbox.Text), that would put the newest log on the top.
I use the program to monitor alot of processes so it would be helpful to see the most recent output without manually scrolling down.
Beta Was this translation helpful? Give feedback.
All reactions