Represents a collection of GradientStop objects that can be individually accessed by index.
To create an object using scripting, see CreateFromXAML.
|oneOrMoreGradientStops||One or more GradientStop object elements.|
GradientStopCollection defines no methods or properties beyond the basic Collection methods and properties. Methods such as Add or GetItem will expect or return objects that are of type LinearGradientBrush or RadialGradientBrush .
The XAML syntax for properties that use a GradientStopCollection is an example of an implicit collection syntax, where you can omit an actual GradientStopCollection object element. Instead, you generally include one or more GradientStop object elements as child elements of a LinearGradientBrush or RadialGradientBrush. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (Explicitly including a GradientStopCollection object element is permissible XAML syntax, and might be useful if you intend to name the collection in XAML and manipulate its contents through script later.)