摘要: 以前对MeasureOverride 和ArrangeOverride十分费解,看到了这篇博文茅塞顿开~ 1 public class CustomControl1 : Panel 2 { 3 /// 4 /// 先测量需要多大尺寸,做个申报准备 5 /// 6 /// 限定的尺寸,比如,规定了width和height 7 /// 8 protected override Size MeasureOverride(Size constraint) 9 {10 ... 阅读全文
posted @ 2014-01-07 17:23 Vimana 阅读(1445) 评论(0) 推荐(1) 编辑