ColorInterpolationMode Property
Collapse the table of content
Expand the table of content

GradientBrush.ColorInterpolationMode Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Show:
© 2017 Microsoft