How to get scrollbar height in scrollviewer in uwp?
Please check ScrollBar
style( stored in the general.xaml file ), the matched part like above screenshot is VerticalThumb
, you could copy the following style in your page resource, and detect VerticalThumb
load event, and get the ActualHeight property with following code.
private void VerticalThumb_Loaded(object sender, RoutedEventArgs e)
{
var verticalThumb = sender as Thumb;
var height = verticalThumb.ActualHeight;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.