Επεξεργασία

Κοινή χρήση μέσω


TileBrush.TileMode Property

Definition

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.

public:
 property System::Windows::Media::TileMode TileMode { System::Windows::Media::TileMode get(); void set(System::Windows::Media::TileMode value); };
public System.Windows.Media.TileMode TileMode { get; set; }
member this.TileMode : System.Windows.Media.TileMode with get, set
Public Property TileMode As TileMode

Property Value

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.

Remarks

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.

Dependency Property Information

Identifier field TileModeProperty
Metadata properties set to true None

Applies to