TileBrush.TileMode Property


Gets or sets a value that specifies how a TileBrush fills the area that you are painting if the base tile is smaller than the output area.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public TileMode TileMode { get; set; }

Property Value

Type: System.Windows.Media.TileMode

A value that specifies how the TileBrush tiles fill the output area when the base tile, which is specified by the Viewport property, is smaller than the output area. The default value is None.

The following illustration shows the different tile modes, which are defined by the TileMode enumeration.

Different TileBrush TileMode settings

Available tile modes for the TileMode enumeration

For the TileMode property to have an effect, you must set the Viewport for the brush to a size that is smaller than the area that you are painting (the output area). If the Viewport size is equal to or exceeds the output area, the brush produces a single tile that expands to fill the output area, and no tile pattern occurs.

Identifier field


Metadata properties set to true


.NET Framework
Available since 3.0
Return to top