摘要:
1、测量和安排布局:MeasureOverride, ArrangeOverride //测量(传入控件的可用大小) protected override Size MeasureOverride(Size availableSize) { //遍历所有子空间 foreach (UIElement child in InternalChildren) { //计算控件可用大小,调用子控件的MeasureOverride方法 child.Measure(availableSize); ... 阅读全文