Apply a solid color or gradient brush to an object's fill or stroke

Applying a brush is how you change the basic appearance of an object, such as the color or pattern that appears on part of the object. Brush properties are listed in the Brushes category of the Properties panel. The properties you see in the Brushes category vary depending on the object you have selected. Although this topic discusses only Fill and Stroke properties, you can apply a brush to all Brush properties such as Foreground, Background, BorderBrush, and OpacityMask.

This topic shows you how to apply a solid color or gradient brush to an object. For information on how to apply a tile brush, see Apply a tile brush to an object's fill or stroke.

To apply a brush to an object's fill or stroke

  1. On the artboard, select the object to which you want to apply a brush. The Properties panel will display the properties for the object.

  2. Under Brushes in the Properties panel, click Fill or Stroke, and then click either Solid color brush 3a66ec96-47bb-47fc-8876-6b9456feec3a or Gradient brush 91fb0c61-7b3b-4ae7-8a59-760e625e3bd7.

  3. At this point, you can define a brush by picking a color or creating a gradient. Additionally, you can click the Brush resources tab 415db740-5a54-48d2-8678-245ccfa7ee8b and apply an existing brush resource to the selected object.

    Tip

    A Color eyedropper 2ab2d2fb-3478-4b33-87fb-3cdeb9df4d52 appears in the lower-right corner of the color Editor when you modify a Solid color brush 3a66ec96-47bb-47fc-8876-6b9456feec3a or a gradient stop on a Gradient brush 91fb0c61-7b3b-4ae7-8a59-760e625e3bd7. With this eyedropper selected, you can grab a color sample from anywhere on your desktop and apply it to the selected brush. When you modify a Gradient brush 91fb0c61-7b3b-4ae7-8a59-760e625e3bd7, you can select the Gradient eyedropper Gradient eyedropper icon and drag a line across a sample of a color anywhere inside the Blend for Visual Studio 2012 application window to apply it to the brush. You can press the ESC key at any time to cancel out of the eyedroppers.

To remove a brush that is applied to an object

  1. On the artboard, select the object from which you want to remove the brush. The Properties panel will display the properties for the object.

  2. Under Brushes in the Properties panel, select the brush property that you want to remove, and then click the No Brush tab 706bbd5c-c0e0-43a1-9604-297f019d0275.

    Note

    In the case of the Stroke property, you are not actually removing the stroke. For example, you may have a stroke applied that has no brush, yet the thickness of the stroke is still present. You can modify the stroke thickness by changing the StrokeThickness value in the Appearance category.

See Also

Tasks

Create a brush resource or color resource