panel.Height = double.NaN; panel.Width = double.NaN; 转载于:https://www.cnblogs.com/MarcLiu/p/3722840.html