How to scroll to the bottom of a ScrollViewer automatically with Xaml and binding?

前端 未结 6 1591
一生所求
一生所求 2020-12-01 05:57

I\'ve got a TextBlock whose content is data bound to a string property of the ViewModel. This TextBlock has a ScrollViewer wrapped aro

6条回答
  •  长情又很酷
    2020-12-01 06:34

    It is easy, examples:

    yourContronInside.ScrollOwner.ScrollToEnd (); 
    yourContronInside.ScrollOwner.ScrollToBottom ();
    

提交回复
热议问题