StackPanel.MeasureOverride(Size) Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Measures the child elements of a StackPanel in anticipation of arranging them during the ArrangeOverride(Size) pass.
protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size constraint);protected override System.Windows.Size MeasureOverride(System.Windows.Size constraint);override this.MeasureOverride : System.Windows.Size -> System.Windows.SizeProtected Overrides Function MeasureOverride (constraint As Size) As SizeParameters
Returns
The Size that represents the desired size of the element.