Windows Dev Center

TileBrush class

Base class that describes a way to paint a region. Parent of ImageBrush.

Inheritance

Object
  DependencyObject
    Brush
      TileBrush

Syntax


Public Class TileBrush
    Inherits Brush

Members

The TileBrush class has these types of members:

Constructors

The TileBrush class has these constructors.

ConstructorDescription
TileBrush Provides base class initialization behavior for TileBrush-derived classes.

 

Methods

The TileBrush class has these methods. It also inherits methods from the Object class.

MethodDescription
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject)
GetAnimationBaseValue Returns any base value established for a dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject)
RegisterPropertyChangedCallback Registers an instance-specific property value for a property-changed notification that comes from the core property system. (Inherited from DependencyObject)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject)
UnregisterPropertyChangedCallback Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback. (Inherited from DependencyObject)

 

Properties

The TileBrush class has these properties.

PropertyAccess typeDescription

AlignmentX

Read/writeGets or sets the horizontal alignment of content in the TileBrush base tile.

AlignmentXProperty

Read-onlyIdentifies the AlignmentX dependency property.

AlignmentY

Read/writeGets or sets the vertical alignment of content in the TileBrush base tile.

AlignmentYProperty

Read-onlyIdentifies the AlignmentY dependency property.

Dispatcher

Read-onlyGets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread. (Inherited from DependencyObject)

Opacity

Read/writeGets or sets the degree of opacity of a Brush. (Inherited from Brush)

RelativeTransform

Read/writeGets or sets the transformation that is applied to the brush using relative coordinates. (Inherited from Brush)

Stretch

Read/writeGets or sets a value that specifies how the content of this TileBrush stretches to fit its tiles.

StretchProperty

Read-onlyIdentifies the Stretch dependency property.

Transform

Read/writeGets or sets the transformation that is applied to the brush. (Inherited from Brush)

 

Remarks

TileBrush derived classes

TileBrush is the parent class for ImageBrush and WebViewBrush. The Windows Runtime XAML vocabulary doesn't support VideoBrush. If you're porting Microsoft Silverlight XAML, WebViewBrush approximately replaces WebBrowserBrush, but be aware that there are "airspace" improvements regarding WebView render behavior that may obviate the need for a brush that draws HTML content.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Media
Windows::UI::Xaml::Media [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

See also

Object
Brush
ImageBrush
WebViewBrush
Quickstart: Using brushes

 

 

Show:
© 2015 Microsoft