GradientBrush.ColorInterpolationMode Property

May 11, 2014

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)
XMLNS for XAML: Not mapped to an xmlns.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2014 Microsoft