Partager via


ColorInterpolationMode (LinearGradientBrush)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that specifies how the colors in the linear gradient stops are interpolated.

<object ColorInterpolationMode="ColorInterpolationMode"  .../>
value = object.colorInterpolationMode
object.colorInterpolationMode = value

Property Value

Type: ColorInterpolationMode

A value of the enumeration that specifies how stops in the brush should interpolate.

This property is read/write. The default value is SRgbLinearInterpolation.

Managed Equivalent

ColorInterpolationMode

Remarks

If you use the ScRGB pattern to declare colors in gradient stops, check the results visually. The default SRgbLinearInterpolation setting might provide satisfactory results.

Applies To

LinearGradientBrush