ContentPresenter.MeasureOverride(Size) ContentPresenter.MeasureOverride(Size) ContentPresenter.MeasureOverride(Size) ContentPresenter.MeasureOverride(Size) Method

定義

サイズ変更プロパティ、余白、子コンテンツの必要なサイズなどに基づいて、ContentPresenter オブジェクトのサイズを決定します。Determines the size of the ContentPresenter object based on the sizing properties, margin, and requested size of the child content.

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

パラメーター

constraint
Size Size Size Size

戻り値が超えることができない上限値。An upper limit value that the return value should not exceed.

戻り値

子コンテンツを配置するために必要なサイズ。The size that is required to arrange child content.

適用対象

こちらもご覧ください