Size HwndWrapper::Measure(const Size availableSize) { if (layout) { return layout->Measure(availableSize); } if (children.size() == 1) { ILayout* l = children.at(0); return l->Measure(availableSize); } desiredSize = Size(); return desiredSize; }
Size Control::Measure(const Size availableSize) { if (layout) { return layout->Measure(availableSize); } if (children.Count() == 1) { ILayout *l = children.At(0); return l->Measure(availableSize); } desiredSize = Size(); return desiredSize; }