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
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
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
.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