Share via


IXRGradientStop (Windows Embedded CE 6.0)

1/6/2010

This class describes the location and color of a transition point in a gradient pattern.

Syntax

class IXRGradientStop : public IXRDependencyObject

Methods

Method Description

IXRGradientStop::GetColor

Retrieves the color of this gradient stop.

IXRGradientStop::GetOffset

Retrieves the location of this gradient stop within the gradient vector.

IXRGradientStop::SetColor

Stops the color of this gradient stop.

IXRGradientStop::SetOffset

Sets the location of this gradient stop within the gradient vector.

Remarks

Use this class to describe the colors in an IXRLinearGradientBrush object or an IXRRadialGradientBrush object. Add the IXRGradientStop objects to an IXRGradientStopCollection, which is supplied to the IXRGradientBrush::SetGradientStops inherited method.

The following illustration shows the gradient stops of a linear gradient:

Ee502702.0c6ddc48-25f6-4f18-8dd4-77cfc05f4351(en-US,WinEmbedded.60).jpg

You can also define a gradient stop in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Notice that this class does not provide an opacity property; to make an IXRGradientStop semi-transparent, call IXRGradientStop::SetColor and pass in a transparent color value.

Inheritance Hierarchy

IXRDependencyObject

    IXRGradientStop

.NET Framework Equivalent

System.Windows.Media.GradientStop

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for Visual Appearance and Behavior

Other Resources