IXRFrameworkElement::SetMaxHeight (Compact 2013)

3/28/2014

This method sets the maximum height of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetMaxHeight(
    __in float MaxHeight
t) = 0; 

Parameters

  • MaxHeight
    [in] Value that indicates the new 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 set these values by calling SB_SETMINHEIGHT and IXRFrameworkElement::SetHeight. 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::GetMaxHeight