MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / MeasureOverride

Method MeasureOverride

Xaml/Controls/ConstrainedBox.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected