I have a StackPanel, which contains vertically more children than can fit on the visible part of the StackPanel.
I need to know the real visible area's height of the StackPanel - but ActualHeight Property returns the actual size of all the children inside the StackPanel.. How to get the visible size?
您可以只检查StackPanel父对象的大小。
DesiredSize.Height-Margin.Top-Margin.Bottom
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.