GradientBrush.ColorInterpolationMode Property

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

Gets or sets a ColorInterpolationMode enumeration value that specifies how the gradient's colors are interpolated.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)


Public Property ColorInterpolationMode As ColorInterpolationMode
public ColorInterpolationMode ColorInterpolationMode { get; set; }
<gradientBrush ColorInterpolationMode="ColorInterpolationMode"/>

Property Value

Type: System.Windows.Media.ColorInterpolationMode
Specifies how the colors in a gradient are interpolated. The default is ColorInterpolationMode.SRgbLinearInterpolation.


Dependency property identifier field: ColorInterpolationModeProperty

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

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also


Other Resources