Describes a way to paint a region by using one or more tiles.
Assembly: PresentationCore (in PresentationCore.dll)
Provides initialization for base class values when called by the constructor of a derived class.
Gets or sets the horizontal alignment of content in thebase tile.
Gets or sets the vertical alignment of content in thebase tile.
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets the transformation that is applied to the brush using relative coordinates. (Inherited from Brush.)
Gets or sets a value that specifies how the content of thisstretches to fit its tiles.
Gets or sets a value that specifies how afills the area that you are painting if the base tile is smaller than the output area.
Gets or sets the transformation that is applied to the brush. This transformation is applied after the brush's output has been mapped and positioned. (Inherited from Brush.)
Gets or sets the position and dimensions of the content in atile.
Gets or sets a value that specifies whether the Viewbox value is relative to the bounding box of the contents or whether the value is absolute.
Gets or sets the position and dimensions of the base tile for a.
Identifies the AlignmentX dependency property.
Identifies the AlignmentY dependency property.
Identifies the Stretch dependency property.
Identifies the TileMode dependency property.
Identifies the Viewbox dependency property.
Identifies the ViewboxUnits dependency property.
Identifies the Viewport dependency property.
Identifies the ViewportUnits dependency property.
The derived classes of ImageBrush class to paint an area by using an image.define the contents of the tiles that you use to paint a region. For example, use the
Use ato control how you paint an area. For example, Windows Presentation Foundation (WPF) provides several types of brushes:
To paint by using an image, use the ImageBrush.
To paint by drawing, use the DrawingBrush.
When you use theto paint an area, instead of painting an area by using a single stretched image, you can paint an area by using a series of image tiles that create a pattern.
When you paint an area by using a, you use three components: content, tiles, and the output area. The following illustrations show how these three components relate to each other.
Content: Acan have different types of content:
You can specify the position and dimensions of Viewbox property.content by using the
Tiles: A Viewport property is used to specify the size and position of the base tile for the . The ViewportUnits property determines whether the size and position of the Viewport are relative to the output area (the default behavior) or whether they are absolute values.produces one or more tiles. By default, the content of the brush is stretched to fill a single tile and that tile is stretched to fill the output area. The
For more information about the Painting with Images, Drawings, and Visuals .class, see
Notes to Inheritors:
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.