There is a ScrollViewer, you need to implement a smooth scrolling to the bottom border, how to implement it?
Please help.
There is a ScrollViewer, you need to implement a smooth scrolling to the bottom border, how to implement it?
Please help.
In general, vitidev said everything , but still add an example, smoothly scrolling content from the current location to the end:
private async Task ScrollDown() { for (var i = this.ScrollViewer1.ContentVerticalOffset; i < this.ScrollViewer1.ScrollableHeight; i++) { this.ScrollViewer1.ScrollToVerticalOffset(i); await Task.Delay(10); } } ... where ScrollViewer1 is the name of the scroll. Call for example buttons:
private async void ButtonTest_OnClick(object sender, RoutedEventArgs e) { await ScrollDown(); } Source: https://ru.stackoverflow.com/questions/582174/
All Articles