Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TileBrush.TileMode Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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)

member TileMode : TileMode with 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
© 2018 Microsoft