| 17 | } |
| 18 | |
| 19 | wf::Size ConstrainedBox::MeasureOverride(wf::Size availableSize) |
| 20 | { |
| 21 | m_OriginalSize = availableSize; |
| 22 | |
| 23 | CalculateConstrainedSize(availableSize); |
| 24 | |
| 25 | m_LastMeasuredSize = availableSize; |
| 26 | |
| 27 | // Call base_type::MeasureOverride so any child elements know what room there is to work with. |
| 28 | // Don't return this though. An image that hasn't loaded yet for example will request very little space. |
| 29 | base_type::MeasureOverride(m_LastMeasuredSize); |
| 30 | return m_LastMeasuredSize; |
| 31 | } |
| 32 | |
| 33 | wf::Size ConstrainedBox::ArrangeOverride(wf::Size finalSize) |
| 34 | { |
nothing calls this directly
no outgoing calls
no test coverage detected