Get Scroll Position Percentage

I need to determine when the user scrolls through 60% of the content in the panel, and I was not very lucky to find a solution for this.

Thanks in advance for any ideas.

+6
source share
1 answer

In the Scroll Event pane, you can do

double scrollPercentage = (double) scrollbar.VerticalScroll.Value / scrollBar.VerticalScroll.Maximum; if (scrollPercentage > 0.6) { ... } 
+5
source

Source: https://habr.com/ru/post/895642/


All Articles