wpf 动态得到label的宽度(无刷新情况)

 

var l =newLabel(){Content="Hello"};
l.Measure(newSize(double.PositiveInfinity,double.PositiveInfinity));Size s = l.DesiredSize;

 

posted @ 2014-05-27 23:23  fff8965  阅读(707)  评论(0编辑  收藏  举报