Edit

Bagikan melalui


DataGridCellsPanel.MeasureOverride(Size) Method

Definition

Determines the desired size of the panel.

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.Size
Protected Overrides Function MeasureOverride (constraint As Size) As Size

Parameters

constraint
Size

The maximum size that the panel can occupy.

Returns

The desired size of the panel.

Remarks

The DataGridCellsPanel class uses the MeasureOverride method to determine which cells are visible and which cells are virtualized.

Applies to