Transform (Brush)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

XAML Values

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.

Property Value

Type: Transform

The transformation to apply to the brush.

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

Managed Equivalent

Transform

Remarks

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.

See Also

Reference