GradientBrush.ColorInterpolationMode Property

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


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.

Community Additions