Compartilhar via


IXRFrameworkElement::SetMinHeight (Compact 2013)

3/28/2014

This method sets the minimum height of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetMinHeight(
    __in float MinHeight
) = 0; 

Parameters

  • MinHeight
    [in] A float value that indicates the new minimum height of this framework element.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method sets MinHeight, which is a dependency property.

MinHeight is one of three properties on IXRFrameworkElement that specify height information. The other two are Height and MaxHeight. You can set these properties by calling IXRFrameworkElement::SetHeight and IXRFrameworkElement::SetMaxHeight. If there is a conflict between these values, the order to making the actual height determination is as follows: first, the value of MinHeight must be honored, then the value of MaxHeight must be honored, and finally, if each of these values are within bounds, the value of Height will be honored.

.NET Framework Equivalent

System.Windows.FrameworkElement.MinHeight

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::GetMinHeight