Compartir a través de


IXRFrameworkElement::SetMinWidth (Compact 2013)

3/28/2014

This method sets the minimum width of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetMinWidth(
    __in float MinWidth
) = 0; 

Parameters

  • MinWidth
    [in] A value that indicates the new minimum width of this framework element, in pixels.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

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

.NET Framework Equivalent

System.Windows.FrameworkElement.MinWidth

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::GetMinWidth