Transform (Brush)

Silverlight

Gets or sets the transformation that is applied to the brush.

<object>
  <object.Transform>
    singleTransform
  </object.Transform>
</object>
value = object.Transform
object.Transform = value

Value

Description

singleTransform

Exactly one object element for an object that derives from Transform. This can be one of the following: RotateTransform, ScaleTransform, SkewTransform, TranslateTransform, MatrixTransform, TransformGroup. If you use a TransformGroup, you can apply multiple transforms by defining the child object elements of the TransformGroup. For more information, see the "XAML Values" section in the TransformGroup reference topic.

Type: Transform

The transformation to apply to the brush.

This property is read/write. The default value is null.

Use this property to rotate, scale, skew, or translate a brush's content. This transformation is applied after the brush's output has been mapped and positioned through evaluation of other brush properties such as AlignmentX, MappingMode, and Stretch.

Community Additions

ADD
Show: