Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 3
GradientBrush Class
 MappingMode Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
GradientBrush..::.MappingMode Property

Gets or sets a BrushMappingMode enumeration value that specifies whether the positioning coordinates of the gradient brush are absolute or relative to the output area.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public Property MappingMode As BrushMappingMode
    Get
    Set
Visual Basic (Usage)
Dim instance As GradientBrush
Dim value As BrushMappingMode

value = instance.MappingMode

instance.MappingMode = value
C#
public BrushMappingMode MappingMode { get; set; }
XAML Attribute Usage
<brushobject MappingMode="BrushMappingMode"/>

Property Value

Type: System.Windows.Media..::.BrushMappingMode
A BrushMappingMode value that specifies how to interpret the gradient brush's positioning coordinates. The default is BrushMappingMode..::.RelativeToBoundingBox.

Dependency property identifier field: MappingModeProperty

A value of Absolute indicates the gradient brush's coordinates are expressed in pixels. A value of BrushMappingMode..::.RelativeToBoundingBox indicates that the gradient brush's coordinates are expressed as a logical factor between 0 and 1.

The MappingMode of a LinearGradientBrush or RadialGradientBrush does not influence how the Offset values are interpreted. Regardless of mapping mode, the offset is always interpreted as a factor between 0 and 1 along the vector that defines the gradient.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2010 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker