Windows Dev Center

Information
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

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)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public TileMode TileMode { get; set; }
<object TileMode="TileMode" .../>

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.

Identifier field

TileModeProperty

Metadata properties set to true

None

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

Available tile modes for the TileMode enumeration

Different TileBrush TileMode settings

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft