Back to Devexpress

BaseLeafPrimitive.Shader Property

corelibraries-devexpress-dot-xtragauges-dot-core-dot-primitive-dot-baseleafprimitive.md

latest2.7 KB
Original Source

BaseLeafPrimitive.Shader Property

Gets or sets an object that allows the color of the object to be modified.

Namespace : DevExpress.XtraGauges.Core.Primitive

Assembly : DevExpress.XtraGauges.v25.2.Core.dll

NuGet Package : DevExpress.Gauges.Core

Declaration

csharp
public BaseColorShader Shader { get; set; }
vb
Public Property Shader As BaseColorShader

Property Value

TypeDescription
DevExpress.XtraGauges.Core.Drawing.BaseColorShader

A BaseColorShader object that represents the shader object.

|

Remarks

See Appearance Customization, to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Shader property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-wpf-advanced-gauge-customization/CS/MainWindow.xaml.cs#L81

csharp
marker.ShapeType = MarkerPointerShapeType.Diamond;
marker.Shader = new StyleShader() { StyleColor1 = Color.Blue, StyleColor2 = Color.Blue };
marker.ShapeOffset = -20.0f;

reporting-wpf-advanced-gauge-customization/VB/MainWindow.xaml.vb#L68

vb
marker.ShapeType = MarkerPointerShapeType.Diamond
marker.Shader = New StyleShader() With {.StyleColor1 = Color.Blue, .StyleColor2 = Color.Blue}
marker.ShapeOffset = -20.0F

See Also

BaseLeafPrimitive Class

BaseLeafPrimitive Members

DevExpress.XtraGauges.Core.Primitive Namespace