Back to Devexpress

DxSankey.ChangeStyleOnHover Property

blazor-devexpress-dot-blazor-dot-dxsankey-ac6d69e8.md

latest2.0 KB
Original Source

DxSankey.ChangeStyleOnHover Property

Specifies whether the DxSankey component changes the node or link appearance on hover.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool ChangeStyleOnHover { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to change the node or link appearance on hover; otherwise, false.

|

Remarks

When a user hovers the mouse pointer over a DxSankey node or link, the corresponding element changes its appearance. The DxSankeyHoverStyleSettings object determines style settings for the hovered element.

razor
<DxSankey Data="@Data"
          SourceFieldName="Source"
          TargetFieldName="Target"
          WeightFieldName="Weight">
    <DxSankeyNodeSettings Width="8" Spacing="30">
        <DxSankeyHoverStyleSettings Color="#5f368d" Opacity="0.6" />
    </DxSankeyNodeSettings>
    <DxSankeyLinkSettings ColorMode="SankeyLinkColorMode.Gradient">
        <DxSankeyHoverStyleSettings Color="#888" Opacity="0.6" />
    </DxSankeyLinkSettings>
</DxSankey>

Set the Sankey component’s ChangeStyleOnHover property to false to disable the hover effect.

razor
<DxSankey Data="@Data"
          ChangeStyleOnHover="false"
          SourceFieldName="Source"
          TargetFieldName="Target"
          WeightFieldName="Weight">
    @* ... *@
</DxSankey>

See Also

DxSankey Class

DxSankey Members

DevExpress.Blazor Namespace