Share via


SplitterPanel.Measure Method

Definition

This method is used to measure and arrange a set of child elements. This method is used both for the normal Measure/Arrange pass, and also to determine where an item would show up if it were added to this panel. This is used for docking previews.

public:
 static System::Windows::Size Measure(System::Windows::Size availableSize, System::Windows::Controls::Orientation orientation, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::PlatformUI::SplitterMeasureData ^> ^ measureData, bool remeasureElements);
public static System.Windows.Size Measure (System.Windows.Size availableSize, System.Windows.Controls.Orientation orientation, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.PlatformUI.SplitterMeasureData> measureData, bool remeasureElements);
static member Measure : System.Windows.Size * System.Windows.Controls.Orientation * seq<Microsoft.VisualStudio.PlatformUI.SplitterMeasureData> * bool -> System.Windows.Size
Public Shared Function Measure (availableSize As Size, orientation As Orientation, measureData As IEnumerable(Of SplitterMeasureData), remeasureElements As Boolean) As Size

Parameters

availableSize
Size

The size available to the control.

orientation
Orientation

The control's orientation.

measureData
IEnumerable<SplitterMeasureData>

The enumeration of child UIElements to measure and arrange.

remeasureElements
Boolean

True to actually remeasure the child elements and attach the new layout information to them. To perform a non-invasive preview of the layout, pass false.

Returns

The calculated size required for this control.

Applies to