IXRTileBrush (Compact 2013)

3/28/2014

This class provides a base class for painting a region by using one or more tiles.

Syntax

class IXRTileBrush : public IXRBrush

Inheritance Hierarchy

IXRDependencyObject

    IXRBrush

        IXRTileBrush

           IXRImageBrush

Methods

Method

Description

IXRTileBrush::GetAlignmentX

Retrieves the horizontal alignment of content in the IXRTileBrush base tile.

IXRTileBrush::GetAlignmentY

Retrieves the vertical alignment of content in the IXRTileBrush base tile.

IXRTileBrush::GetStretch

Retrieves a value that specifies how the content of this tile brush stretches to fit its tiles.

IXRTileBrush::SetAlignmentX

Sets the horizontal alignment of content in the IXRTileBrush base tile.

IXRTileBrush::SetAlignmentY

Sets the vertical alignment of content in the IXRTileBrush base tile.

IXRTileBrush::SetStretch

Sets a value that specifies how the content of this tile brush stretches to fit its tiles.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

IXRTileBrush paints an area by using a series of image tiles that create a pattern, instead of using a single stretched image.

When you paint an area by using IXRTileBrush, you use three components: content, tiles, and the output area. The image determines the content, and the tile determines the location of the image in relation to the output area on-screen. When a tile brush produces a single tile, the image completely fills the area that you are painting.

IXRImageBrush is a derived class of IXRTileBrush that defines the contents of the tiles that you use to paint a region.

When you create a class instance, use an IXRTileBrushPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

.NET Framework Equivalent

System.Windows.Media.TileBrush

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Visual Appearance