Copy or apply attributes to an object (Blend for Visual Studio)

You can make an object on the artboard have the same appearance as another object of a similar type by using the Eyedropper and Paint Bucket tools in Blend for Visual Studio 2012. The following attributes are copied or applied when you use the Eyedropper and Paint Bucket actions:

  • Brushes   Foreground, Background, Border Brush, Fill, and Stroke.

  • Appearance   Opacity, Stroke Thickness, Stroke Miter Limit, Stroke Start Line Cap, Stroke End Line Cap, Stroke Line Join, and Stroke Dash Cap.

  • Text   Font Family, Font Size, Font Weight, Font Style, Line Height, Text Indent, and Text Alignment.

To paste attributes to the selected object from another object

  1. Select the object or objects with the attributes that you want to change.

  2. In the Tools panel, click Eyedropper JJ155239.199cf53a-f100-43f6-9a06-7c9f1a453f39(en-us,VS.110).png. Notice that the pointer changes to an eyedropper JJ155239.02163053-dad9-464e-b6e0-cea4692bea87(en-us,VS.110).png.

  3. With the eyedropper pointer, click the object from which you want to copy attributes. The attributes will automatically be applied to the object or objects that you selected in step 1. You can continue to click objects with the Eyedropper tool, pasting the attributes onto your selected object or objects.

    Note

    Only objects of a similar type can copy and paste attributes. For example, if you select an ellipse object on the artboard, and then click a button object with Eyedropper JJ155239.199cf53a-f100-43f6-9a06-7c9f1a453f39(en-us,VS.110).png, the attributes of the button will not be applied to the ellipse.

To apply active attributes to an object

  1. Select the object or objects from which you want to copy attributes. The attributes appear in the Properties panel under Brush, Appearance, and, if the object is a content control such as a button or text box, under Text also.

  2. In the Tools panel, click Paint Bucket JJ155239.39a62108-d8d1-4c6b-8d89-8678a055ff36(en-us,VS.110).png. Notice that the pointer changes to a paint bucket JJ155239.f595d405-90d8-45f0-84ba-aa73bd756bcd(en-us,VS.110).png.

  3. With the paint bucket pointer, click an object to which you want to copy the active attributes that appear in the Properties panel. You can click any number of additional objects to apply the attributes. You can also change a property, which will be reflected on the object that you selected in step 1, and on any subsequent objects that you click with the paint bucket pointer.

    Note

    Only objects of a similar type can copy and paste attributes. For example, if you select a button object on the artboard, and then click an ellipse object with Paint Bucket JJ155239.39a62108-d8d1-4c6b-8d89-8678a055ff36(en-us,VS.110).png, the attributes of the button will not be applied to the ellipse. Instead, the attributes of the last shape object that was selected by Eyedropper JJ155239.199cf53a-f100-43f6-9a06-7c9f1a453f39(en-us,VS.110).png will be applied to the button..

See Also

Tasks

Create a brush or color resource (Blend for Visual Studio)