次の方法で共有


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)

Syntax

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

Remarks

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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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

See Also

Reference

Other Resources