XRGradientSpreadMethod (Compact 2013)

3/28/2014

This enumeration specifies how to draw the gradient outside the gradient vector or space of a gradient brush.

Syntax

enum XRGradientSpreadMethod{
    XRGradientSpreadMethod_Pad=0,
    XRGradientSpreadMethod_Reflect=1,
    XRGradientSpreadMethod_Repeat=2,
};

Members

  • XRGradientSpreadMethod_Pad
    The color values at the ends of the gradient vector fill the remaining space.

    The following illustration shows the effect of the XRGradientSpreadMethod_Pad spread method**on both a linear and a radial gradient brush.

    Linear gradient brush

    Radial gradient brush

    Ee501840.3e2a6380-cef3-4ae7-b180-4aee967894d4(en-us,WinEmbedded.80).jpg
    Ee501840.a0c9cb6d-2b75-4b33-9593-d3af03ca5c58(en-us,WinEmbedded.80).jpg
  • XRGradientSpreadMethod_Reflect
    The gradient is repeated in the reverse direction until the space is filled.

    The following illustration shows the effect of the XRGradientSpreadMethod_Reflect spread method**on a linear and on a radial gradient brush.

    Linear gradient brush

    Radial gradient brush

    Ee501840.92c1d928-80c2-44f1-aa1a-797befa217d0(en-us,WinEmbedded.80).jpg
    Ee501840.95756ce1-4efd-48e2-bc7b-9d48cf73ab90(en-us,WinEmbedded.80).jpg
  • XRGradientSpreadMethod_Repeat
    The gradient is repeated in the original direction until the space is filled.

    The following illustration shows the effect of the XRGradientSpreadMethod_Repeat spread method**on both a linear and a radial gradient brush.

    Linear gradient brush

    Radial gradient brush

    Ee501840.cc1b41bc-d27f-4180-a94c-e4601ece976d(en-us,WinEmbedded.80).jpg
    Ee501840.b3ed9447-88d5-48ea-9466-d975e9a11438(en-us,WinEmbedded.80).jpg

.NET Framework Equivalent

System.Windows.Media.GradientSpreadMethod

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
IXRGradientBrush::GetSpreadMethod
IXRGradientBrush::SetSpreadMethod