Share via


IXRBrush (Windows Embedded CE 6.0)

1/6/2010

This class defines objects that are used to paint graphical objects. Classes that derive from IXRBrush describe how the area is painted.

Syntax

class IXRBrush : public IXRDependencyObject

Methods

Method Description

IXRBrush::GetOpacity

Retrieves the degree of opacity of this brush object.

IXRBrush::GetRelativeTransform

Retrieves the transformation that is applied to this brush by using relative coordinates.

IXRBrush::GetTransform

Retrieves the transformation that is applied to this brush object.

IXRBrush::SetOpacity

Sets the degree of opacity of this brush object.

IXRBrush::SetRelativeTransform

Sets the transformation to apply to this brush by using relative coordinates.

IXRBrush::SetTransform

Sets the transformation to apply to this brush object.

Remarks

IXRBrush provides the base class for brushes in Silverlight for Windows Embedded. Each brush paints an area differently. Brushes can paint an area with a solid color, a gradient, or an image. The following list describes the different kinds of brushes:

  • IXRSolidColorBrush: Paints an area with a solid color.
  • IXRLinearGradientBrush: Paints an area with a linear gradient.
  • IXRRadialGradientBrush: Paints an area with a radial gradient.
  • IXRImageBrush: Paints an area with an image.

You can paint an area on the graphical window by using an IXRSolidColorBrush that uses a predefined solid color. To do this in C++ code, set a color for the IXRSolidColorBrush. For more information, see IXRSolidColorBrush.

Inheritance Hierarchy

IXRDependencyObject

    IXRBrush

        IXRGradientBrush

            IXRLinearGradientBrush

            IXRRadialGradientBrush

        IXRSolidColorBrush

        IXRTileBrush

            IXRImageBrush

.NET Framework Equivalent

System.Windows.Media.Brush

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for Visual Appearance and Behavior