网站首页
编程语言
数据库
系统相关
其他分享
编程问答
VisualTreeHelper
2024-09-12
WPF 什么时候 VisualTreeHelper.GetDescendantBounds 将返回无穷大
本文将和大家介绍在什么情况下WPF将会在调用VisualTreeHelper.GetDescendantBounds方法时,返回一个无穷大的范围尺寸在WPF的容器控件的里层元素的RenderTransform包含NaN将会导致对上层容器调用VisualTreeHelper.GetDescendantBounds返回无穷大返回的矩形范围是-∞,