Back to Devexpress

AreaSeriesStyle.Alpha Property

maui-devexpress-dot-maui-dot-charts-dot-areaseriesstyle-83ab121f.md

latest3.1 KB
Original Source

AreaSeriesStyle.Alpha Property

Gets or sets the transparency (alpha channel) of the filled area. This is a bindable property.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public float Alpha { get; set; }

Property Value

TypeDefaultDescription
Single-1

A value between 0 (transparent) and 1 (opaque) that specifies the area transparency.

|

Remarks

Assign an AreaSeriesStyle object to the Style property of the area series. Use this object’s properties to customize the following:

xml
<dxc:AreaSeries MarkersVisible="true">
    <!--Series Data-->

    <dxc:AreaSeries.Style>
        <dxc:AreaSeriesStyle Stroke="#009688" StrokeThickness="3"
                             Fill="#009688" Alpha="0.4"
                             MarkerSize="10">
            <dxc:AreaSeriesStyle.MarkerStyle>
                <dxc:MarkerStyle Fill="#009688"/>
            </dxc:AreaSeriesStyle.MarkerStyle>
        </dxc:AreaSeriesStyle>
    </dxc:AreaSeries.Style>
</dxc:AreaSeries>

Transparency Gradient

You can apply a transparency gradient to the area fill color. To do this, assign a TransparencyGradient object to the AreaSeriesStyle.FillEffect property and specify alpha channels that define how the visible area color intensity changes from the baseline to the series line. This setting has a higher priority than Alpha.

xml
<dxc:AreaSeries>
    <!--Series Data-->

    <dxc:AreaSeries.Style>
        <dxc:AreaSeriesStyle Fill="#009688">
            <dxc:AreaSeriesStyle.FillEffect>
                <dxc:TransparencyGradient BaselineAlpha="0.6" SeriesLineAlpha="0"/>
            </dxc:AreaSeriesStyle.FillEffect>
        </dxc:AreaSeriesStyle>
    </dxc:AreaSeries.Style>
</dxc:AreaSeries>

See Also

AreaSeriesStyle Class

AreaSeriesStyle Members

DevExpress.Maui.Charts Namespace