Describes a way to paint a region by using one or more tiles.
Assembly: PresentationCore (in PresentationCore.dll)
public abstract class TileBrush : Brush
public ref class TileBrush abstract : Brush
[<AbstractClass>] type TileBrush = class inherit Brush end
Public MustInherit Class TileBrush Inherits Brush
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 the position and dimensions of the base tile for a.
Gets or sets a BrushMappingMode enumeration that specifies whether the value of the , which indicates the size and position of the base tile, is relative to the size of the output area.
Creates a modifiable copy of thisby making deep copies of its values.
Creates a modifiable copy of thisobject by making deep copies of its values. This method does not copy resource references, data bindings, or animations, although it does copy their current values.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Makes the current object unmodifiable and sets its property to true. (Inherited from Freezable.)
Obtains the current bounds of thecontent
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.(Inherited from Freezable.)
Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.(Inherited from DependencyObject.)
Creates a string representation of this object based on the specified culture-specific formatting information. (Inherited from Brush.)
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:
Tiles: A property is used to specify the size and position of the base tile for the . The property determines whether the size and position of the 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.