Back to Devexpress

DxShadowSettings Class

blazor-devexpress-dot-blazor-1d321299.md

latest2.7 KB
Original Source

DxShadowSettings Class

Contains settings for the element’s shadows.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class DxShadowSettings :
    DxSettingsComponent<ShadowSettingsModel>

Remarks

Use DxShadowSettings objects to customize shadow settings of the following components:

Component-Level Settings

The DxShadowSettings component allows you to specify the following properties at the component level:

Blur | Color | OpacitySpecify the shadow appearance.HorizontalOffset | VerticalOffsetSpecify the shadow position.

Example

The following code snippet configures shadows for DxBarGauge tooltips:

razor
<DxBarGauge Width="100%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            Values="@Values">
    @* ... *@
    <DxTooltipSettings Enabled="true" Color="lightyellow" >
        <DxTextFormatSettings LdmlString="@LabelFormat" />
        <DxShadowSettings Blur="5" Color="green" Opacity="0.9"
                          HorizontalOffset="-20" VerticalOffset="10" />
    </DxTooltipSettings>
</DxBarGauge>

@code {
    double[] Values = new double[] { 47.27, 65.32, 84.59, 81.86, 99 };
    string LabelFormat = "##.# '%' ";
}

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

Object ComponentBase DxSettingsComponent<DevExpress.Blazor.ClientComponents.Internal.ShadowSettingsModel> DxShadowSettings

See Also

DxShadowSettings Members

DevExpress.Blazor Namespace