IXRFrameworkElement::SetMaxWidth (Compact 2013)

3/28/2014

This method sets the maximum width of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetMaxWidth(
    __in float MaxWidth
) = 0; 

Parameters

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

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

This method retrieves MaxWidth, which is a dependency property. This is one of three properties on IXRFrameworkElement that specify width information. The other two properties are MinWidth and Width. You can set these properties by calling IXRFrameworkElement::SetMinWidth and IXRFrameworkElement::SetWidth. 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.MaxWidth

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::GetMaxWidth