Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

Appearance overview

Changing the visual look of an object is a fundamental task in Microsoft Expression Blend. By using the properties under both Appearance and Brushes in the Properties panel, you can change the stroke color, fill color, opacity, and visibility of a selected object. Depending on what type of object you select in your Expression Blend project, the properties of the Appearance and Brushes categories dynamically adjust to the object's content to reflect the appropriate visual attributes.

Much of changing an object's appearance relates to applying brushes to specific properties. The following table describes these properties.

Property

Description

Fill

Sets the brush that is applied to the interior of a shape or path.

Stroke

Sets the brush that is applied to the outline (border) of a shape or path.

Background

Sets the brush that is applied to the background of an object. This property is typically applied to the background of controls that display text, such as the Button or TextBlock control.

Foreground

Sets the brush that is applied to the foreground of an object. This property is typically applied to the text that is displayed in controls, such as the Button or TextBlock control.

BorderBrush

Sets the brush that is applied to the border on certain controls.

Opacity

Sets the whole object's opacity.

Visibility

Determines whether an object is visible or hidden at run time. Child objects can also be affected by the parent element's visibility.

OpacityMask

Sets a brush whose color is ignored and whose opacity is transferred to the masked object. Wherever the opacity mask is opaque, the masked object will be opaque; wherever the opacity mask is transparent, the masked object will be transparent.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Brushes are used to set the visual appearance of an object on the artboard. For example, you can use a solid blue brush for the fill of a rectangle (as in the first image that follows). Brushes come in several forms, from simple solid color or gradient brushes to more complex tile brushes. The following table describes the brushes that are available in Expression Blend. Additionally, you can also use the No brush Cc294765.706bbd5c-c0e0-43a1-9604-297f019d0275(en-us,Expression.10).png tab to remove all color from the selected property. For example, to create an outline of a rectangle, you could set the Fill of the rectangle to No brush, and set the Stroke to a Solid color brush.

Brush

Appearance

Description

Solid color brush

Cc294765.b83764e5-b1f6-4a94-b75b-7513bef1a430(en-us,Expression.10).png

Composed of a single color.

Linear gradient brush

Cc294765.50efa3cf-d265-4ea4-af0f-bdcaed4d15fa(en-us,Expression.10).png Cc294765.4f1dddeb-7c03-449d-8199-0fa82122f4b2(en-us,Expression.10).png

Composed of a linear color gradation.

Radial gradient brush

Cc294765.c02b5484-1814-40d7-9bd8-1fa88f76fab8(en-us,Expression.10).png Cc294765.c66dd0d9-ce5a-4c6c-9621-7b3cc16a9429(en-us,Expression.10).png

Composed of a radial color gradation.

Image brush

(WPF and Silverlight 2 only)

Cc294765.81f84f56-906d-456b-8288-d77da1e01e31(en-us,Expression.10).png Cc294765.d3782ca8-64da-47a4-a095-c6cdd0fa47a2(en-us,Expression.10).png Cc294765.38ae3691-f3f1-4a1e-82ca-c7fa164bf56e(en-us,Expression.10).png

Created from an image. From left to right as shown here: the initial image brush, the image brush tiled, and the image brush flipped.

Drawing brush

(WPF and Silverlight 2 only)

Cc294765.197666ac-ef57-4c5c-9779-669e991a00a5(en-us,Expression.10).png Cc294765.ba09cda3-4cee-40ba-b3d4-edc032158bdc(en-us,Expression.10).png Cc294765.15bf6021-620c-4490-9eae-086153d3f14f(en-us,Expression.10).png

Created from a vector drawing. From left to right as shown here: the initial drawing brush, the drawing brush tiled, and the drawing brush flipped.

Visual brush

(WPF and Silverlight 2 only)

Cc294765.fb6c90e0-153c-48fe-b563-e601beac6227(en-us,Expression.10).png Cc294765.e261b99f-7d8f-4d91-bc84-19c7beccc255(en-us,Expression.10).png

Created from a control such as a button. From left to right as shown here: the initial button and the brush with a Tile mode set to Tile. Note that visual brushes can potentially decrease the performance of the running application, because of the complexity of the control that is used to create the visual brush.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

After you create a brush on an object, you can convert the brush to a resource that you can then apply to other objects.

Cc294765.alert_note(en-us,Expression.10).gifNote:

Resources are not supported in Microsoft Silverlight 1.0.

Brush resources are not restricted to single brush or color properties. You can create a brush resource by using several objects on the artboard. You can even create a brush called a VisualBrush that updates its appearance during runtime if the objects that it was created from change during runtime.

You can create resource dictionaries for your brushes so that you can reuse them throughout your project, or even in other projects.

For more information, see Create a brush or color resource and Create or modify a drawing brush resource. For information about resources, see Resources overview.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Expression Blend includes a color editor under Brushes in the Properties panel. The color editor also appears if you modify a brush resource in the Resources panel. The color editor has the following four color spaces, in addition to a hexadecimal mode (#AARRGGBB):

  • RGB   Red (0-255), Green (0-255), Blue (0-255)

  • HLS   Hue (360-degree color wheel), Lightness (0 to 100 percent), Saturation (0 to 100 percent)

  • HSB   Hue (360-degree color wheel), Saturation (0 to 100 percent), Brightness (0 to 100 percent)

  • CMYK   Cyan (0 to 100 percent), Magenta (0 to 100 percent), Yellow (0 to 100 percent), Black (0 to 100 percent)

To change between color spaces, click one of the underlined letters in the current color space to see a pop-up menu of the alternative color spaces.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Expression Blend provides two tools that are designed specifically to copy and apply attributes to and from objects. The following properties are copied or applied during Eyedropper and Paint Bucket actions:

  • Brushes   Foreground, Background, Border Brush, Fill, Stroke, and Opacity Mask

  • 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, Text Decorations, Line Height, Text Indent, and Text Alignment

Cc294765.199cf53a-f100-43f6-9a06-7c9f1a453f39(en-us,Expression.10).png

Eyedropper tool

Copies the appearance of another object to the currently selected object or objects.

Cc294765.39a62108-d8d1-4c6b-8d89-8678a055ff36(en-us,Expression.10).png

Paint Bucket tool

Copies the appearance of the currently selected object or objects to another object.

For more information about the Eyedropper and Paint Bucket tools, see Copy or apply attributes to an object.

A Color eyedropper Cc294765.2ab2d2fb-3478-4b33-87fb-3cdeb9df4d52(en-us,Expression.10).png also appears in the lower-right corner of the color Editor when you modify a Solid color brush Cc294765.3a66ec96-47bb-47fc-8876-6b9456feec3a(en-us,Expression.10).png or a gradient stop on a Gradient brush Cc294765.91fb0c61-7b3b-4ae7-8a59-760e625e3bd7(en-us,Expression.10).png. With this eyedropper selected, you can grab a color sample from anywhere on your desktop and apply it to the selected brush. You can press the ESC key at any time to cancel out of the eyedropper.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Gradients enable you to apply a graduated blend of colors to an object, to create a smooth color gradation and to give that object more depth. Perhaps you want to use that object as a background where the left side of the object contains a solid color that gradually fades to white on the right side of the object. This enables you to create two distinguishable areas from an otherwise flat object.

Click Linear Gradient Brush Cc294765.209508b1-adaa-4293-8d02-23cade0c599e(en-us,Expression.10).pngand Radial gradient Cc294765.2b3b2e7c-204f-4f66-9c1c-540698186242(en-us,Expression.10).png under Brushes in the Properties panel to switch between the two gradient brush types.

You can use the two types of gradient brushes to create gradient fills, gradient strokes, text that has a gradient for its Foreground property, or gradient backgrounds for any element that has a Background property. When you apply a gradient to an appearance property, notice that small icons Cc294765.d45e017e-3123-4fc1-9d99-e87b4e3e2202(en-us,Expression.10).png, known as stops, appear on the gradient slider. You can change the color of each gradient stop, and add as many stops as you want to the gradient slider by just clicking the gradient slider. Conversely, you can easily remove stops that you no longer need by dragging them off the bottom of the gradient slider (dragging off the sides or top of the slider will not remove the stops).

You can also set some options when you use a gradient brush. Click the Options button at the bottom of the color editor to set the gradient mode to Pad, Reflect (which mirrors the gradient fill), or Repeat (which repeats the gradient fill). These options work on both linear and radial gradient brushes when you use the Brush Transform Cc294765.8dc54a0d-02cc-44cd-b802-5a78309f4503(en-us,Expression.10).png tool to modify the brush. For more information, see the Brush transform tool section that follows.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

To transform the fill, stroke, opacity mask, or other brush that is applied to an object, select the brush property in the Properties panel, and then select the Brush Transform Cc294765.8dc54a0d-02cc-44cd-b802-5a78309f4503(en-us,Expression.10).png tool in the Toolbox. A brush transform arrow appears on the artboard that you can modify with your mouse pointer. If you are using a gradient brush, the endpoints of the transform arrow correspond to the gradient stops at either end of the color bar. You can change the behavior of the brush transform tool in the following ways:

  • Hold the SHIFT key when you drag an endpoint to constrain the movement along the straight line between the endpoints.

  • Hold the SHIFT key when you move the whole arrow to constrain the movement to the X or the Y plane.

  • Hold the SHIFT key when you rotate an endpoint to snap every 15 degrees.

  • Hold the ALT key when you drag an endpoint to move both endpoints at the same time, maintaining the position of the center point.

The following images demonstrate the appearance of a rectangle object after various transformations are applied to the gradient brush of the Fill property.

Cc294765.ddadfdb4-f9f5-4239-8e56-d04014592af4(en-us,Expression.10).png

Transformations applied to the linear gradient brush of a rectangle

Cc294765.06d84067-19a1-4699-af39-18d0b11679a0(en-us,Expression.10).png

Transformations applied to the radial gradient brush of a rectangle

You can optionally set the properties that appear when you click the Options button under Brushes in the Properties panel. In the previous image, the Pad option is selected. If you selected the Reflect or Repeat option, and then made the transform arrow shorter than the object, you would see a corrugated effect.

You can transform brush types other than gradient brushes. For more information about brush transforms, see Transform a gradient or tile brush.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

When you transform a brush, parts of the object will sometimes be clipped (that is, parts will disappear outside the bounding box). You can fix clipping problems in the following ways:

  • Clear the check box for the ClipToBounds property under Appearance in the Properties panel.

  • Use the properties in the LayoutTransform category instead of RenderTransform under Transform in the Properties panel. This is especially useful when you transform a visual brush.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Strokes are the borders on objects. You can change the applied brush (solid, gradient, or tile), opacity, width, and miter limit of the stroke on an object, in addition to the corner join and end-cap styles. The stroke on an object is always applied on top of a fill, even if you have no fill applied to that object. To make any changes to the stroke of an object, you must have Stroke selected in the list under Brushes in the Properties panel.

  • Stroke width   The width of a stroke on an object is measured in pixels (or, device-independent units, which are approximately 1/96 inch) and can have a value ranging from 0 to up to half of the shape's width or height. In general, after the stroke thickness reaches half the shape's width and height, the stroke covers the whole fill. You can set the stroke width value by using the StrokeThickness property under Appearance in the Properties panel.

  • Corner joins   For objects that have sharp corners, such as rectangles, you can change the way the stroke appears at each corner point by applying one of three corner join styles: Miter Join Cc294765.25182a96-9a69-478a-9cfe-5b360e6a9bea(en-us,Expression.10).png, Round Join Cc294765.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(en-us,Expression.10).png, and Bevel Join Cc294765.f0c1ff71-7814-42ba-806b-7ea92d616e69(en-us,Expression.10).png. You can set the corner join style by using the StrokeLineJoin property under Appearance in the Properties panel.

    Cc294765.64381b5b-b70f-47a7-b298-4e4f4fe982a6(en-us,Expression.10).png
  • Miter limit   The miter limit controls how long the corner point of a miter join can get before it is automatically squared off into a bevel join. You can set the miter limit by using the StrokeMiterLimit property under Appearance in the Properties panel. The following image displays three angles with a StrokeThickness of 40, and a StrokeMiterLimit of 1 Cc294765.25182a96-9a69-478a-9cfe-5b360e6a9bea(en-us,Expression.10).png, 2.2 Cc294765.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(en-us,Expression.10).png, and 4 Cc294765.f0c1ff71-7814-42ba-806b-7ea92d616e69(en-us,Expression.10).png. The size of the angle and the stroke thickness determine the visual effect of the miter limit.

    Cc294765.9bed7ef3-df8f-4844-9341-98d3f726f267(en-us,Expression.10).png
  • End caps   For paths that contain unconnected ends, such as lines, you can change the way the stroke appears at each end by applying one of four end-cap styles: Flat Cap Cc294765.25182a96-9a69-478a-9cfe-5b360e6a9bea(en-us,Expression.10).png, Round Cap Cc294765.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(en-us,Expression.10).png, Square Cap Cc294765.f0c1ff71-7814-42ba-806b-7ea92d616e69(en-us,Expression.10).png, and Triangle Cap Cc294765.eb6fad93-f17e-4f62-a926-8c8651862891(en-us,Expression.10).png. You can set the end-cap style by using the StrokeEndLineCap or StrokeStartLineCap properties under Appearance in the Properties panel.

    Cc294765.2e5bbb1b-f631-466d-b510-5a4bf824cc74(en-us,Expression.10).png

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

When you decrease the opacity of an object, you increase its transparency, so that you can see other objects that are behind it. Opacity is controlled by an alpha channel that stores all the transparency information for an object, gradient, or opacity mask. The following table describes three methods that you can select from to change the object's opacity.

Method

Results

Opacity   Changes the transparency of the whole object, including all the object's visual attributes. The image to the right shows the opacity value set at 60 percent.

Cc294765.a5f77efb-94c4-4746-9b51-3fcb35d530a1(en-us,Expression.10).png

Transparency   Sets the alpha value (A) of an individual brush attribute for an object, such as the fill or stroke, slightly transparent without having to change all attributes on a single object. The image to the right shows that only the fill for the ellipse is more transparent, because the alpha value for the fill is set to 50 percent. The stroke for the ellipse remains at 100 percent.

Cc294765.87ccf3e4-01f4-4b47-b77f-d2099e400983(en-us,Expression.10).png

Visibility   Enables you to hide or show an object at different times. This is especially effective in animation when you do not want to remove an object completely from the artboard. In the image to the right, the left object that has a blue fill and a thick black stroke and that is part of the previous two images in this table is now set as Hidden.

Cc294765.7c2aa173-830c-4444-b588-f725ea563077(en-us,Expression.10).png

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Bitmap effects are simple pixel processing operations.

Cc294765.alert_note(en-us,Expression.10).gifNote:

Bitmap effects are not supported in Silverlight 1.0 or Silverlight 2.

Cc294765.alert_note(en-us,Expression.10).gifNote:

In Windows Presentation Foundation (WPF) applications (such as those created by using Expression Blend), pixels refer to device-independent pixels or device-independent units, which are equivalent to the size of a pixel on a monitor that is set to a screen resolution of 96 dots per inch. Each unit is approximately 1/96 inch, regardless of monitor size or screen resolution.

The following table describes each bitmap effect that is available in Expression Blend. Bitmap effects are available under Appearance in the Properties panel when you select an object, such as a rectangle or button. Each bitmap effect exposes subproperties, such as the Radius of the Blur bitmap effect. The pixel processing that is required to render bitmap effects (and the object to which those effects are applied) occurs at run time. For this reason, you should not apply bitmap effects to large visuals or animations, because this can decrease the performance of your application. For information about how to set bitmap effects, see Add a bitmap effect to an object.

Effect

Appearance

Description

None

Cc294765.a33ed89c-afbe-4f5a-a2c0-2fa197d3c726(en-us,Expression.10).png

Button without a bitmap effect applied.

Blur

Cc294765.339caaa0-22b9-44f9-8bbf-77fe92fda69e(en-us,Expression.10).png

Simulates looking at an object through an out-of-focus lens.

Outer glow

Cc294765.0004f578-fae6-44e7-9f16-55117f798412(en-us,Expression.10).png

Creates a halo of color around the perimeter of an object.

Drop shadow

Cc294765.86ca6ea3-14c9-4b94-9441-bd2186bd4f4d(en-us,Expression.10).png

Creates a shadow behind an object.

Bevel

Cc294765.b0a45c04-5a8a-407c-8bb8-1f4fb22a889e(en-us,Expression.10).png

Creates a bevel that raises the surface of an image according to a specified curve.

Emboss

Cc294765.bd142911-d002-4940-a53b-e00aadba8f49(en-us,Expression.10).png

Creates a bump mapping of a visual to give the impression of depth and texture from an artificial light source.

Cc294765.7e183f1f-37d8-4dcb-980c-19a5d61ca087(en-us,Expression.10).gif Back to top

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.