2

I know this question has been asked many times before, I just want to say, I have tried doing my research however my issue is that I am completely new to C# and am not able to understand the solutions presented because they are presented not for people as new as me.

Is there any simple or even moderately complicated way for someone to create a ScrollViewer in XAML that keeps scrolled to the bottom when it's content is edited, i.e. if an element is added to it.

Thanks a lot!

Edit: I've looked at http://msdn.microsoft.com/en-us/library/system.windows.controls.scrollviewer.linedown.aspx but I'm not sure how this will be called automatically or if the content's height that is added is over a line long, how this function will keep the ScrollViewer scrolled down.

1 Answer 1

6

Have you tried :

ScrollViewer.ScrollToBottom()

I mean whenever you are adding or editing an item, you can call it at the end.

Sign up to request clarification or add additional context in comments.

3 Comments

No, it wasn't shown as this when I looked at other SO posts, or MSDN etc. Where will I implement this code? Thanks a lot!
yeah but where will i implement this? if it works i'll mark it for sure!
ok sorry, I didn't see your edit, I've tried it and it works! Thanks a lot! I'll mark it as answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.