Compartir a través de


IXRFrameworkElement::GetMaxWidth (Compact 2013)

3/28/2014

This method retrieves the maximum width of this framework element.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetMaxWidth(
    __out float *pMaxWidth
) = 0;

Parameters

  • pMaxWidth
    [out] Pointer to a value that indicates the 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 retrieve these values by calling IXRFrameworkElement::GetMinWidth and IXRFrameworkElement::GetWidth. 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::SetMaxWidth