次の方法で共有


IXRFrameworkElement::SetMinWidth (Windows Embedded CE 6.0)

1/6/2010

This method sets the minimum width of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetMinWidth(
    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
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::GetMinWidth