Partager via


IXRFrameworkElement::GetMaxHeight (Compact 2013)

3/28/2014

This method retrieves the maximum-height of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetMaxHeight(
    __out float *pMaxHeight
) = 0;

Parameters

  • pMaxHeight
    [out] Indicates the maximum-height of this framework element, in pixels.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method retrieves the value of MaxHeight, which is a dependency property. This is one of three properties on IXRFrameworkElement that specify height information. The other two are MinHeight and Height. You can retrieve these values by calling IXRFrameworkElement::GetMinHeight and IXRFrameworkElement::GetHeight. If there is a conflict between these values, the order of making the actual height determination is as follows: first, the value of MinHeight must be checked, then the value of MaxHeight must be checked, and finally, if each of these are within bounds, the value of Height must be honored as the height of this element.

.NET Framework Equivalent

System.Window.FrameworkElement.MaxHeight

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::SetMaxHeight