Brushes collection of the following type can be placed in the items dictionary:
Brush with solid fill (SolidColorBrush).
linear gradient brush (LinearGradientBrush).
radial gradient brush (RadialGradientBrush).
Example of the Brushes Menu Setup
The SolidColorBrush item represents the brush collection with solid fill. Collection item is an instance of the SolidColorBrush class.
| Attribute name | Type | Description |
| Id | String | Brush identifier. |
| Color | String | Name or HTML view of brush color. |
| Opacity | Double | Brush transparency. Values from 0 to 1. |
The LinearGradientBrush item is represented by the brush collection with the solid fill. Collection item is an instance of the LinearGradientBrush class.
| Attribute name | Type | Description |
| Id | String | Brush identifier. |
| StartPoint | Point | Gradient starting point. |
| EndPoint | Point | End point of gradient. |
| Opacity | Double | Brush transparency. Values from 0 to 1. |
The GradientStops item contains the points list of the linear gradient. Description of liner gradient point is in the GradientStopitem.
| Attribute name | Type | Description |
| Color | String | Name or HTML view of brush color. |
| Offset | Double | Point offset. It can be used as an item. |
The RadialGradientBrush item is a collection of solid fill brushes. Collection item is an instance of the RadialGradientBrush class.
| Attribute name | Type | Description |
| Id | String | Brush identifier. |
| Center | Point | Central point of the radial gradient. |
| Opacity | Double | Brush transparency. Values from 0 to 1. |
The GradientStops item contains the points list of the radial gradient. Description of liner gradient point is in the GradientStopitem. Attributes of the GradientStop item see above.
See also: