Back to Devexpress

GaugeBase.RedrawOnResize Property

blazor-devexpress-dot-blazor-dot-base-dot-gaugebase-5e4aeb5a.md

latest1.4 KB
Original Source

GaugeBase.RedrawOnResize Property

Specifies whether to redraw the gauge when its container’s size changes.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

true to redraw the component; otherwise, false.

|

Remarks

When the size of the gauge component’s container changes, the component is redrawn.

To disable this behavior, set the RedrawOnResize property to false.

razor
<DxBarGauge Width="100%"
            Height="500px"
            StartValue="0"
            EndValue="100"
            RedrawOnResize="false"
            Values="@Values">
    @* ... *@
</DxBarGauge>

@code {
    double[] Values = new double[] { 47.27, 65.32, 84.59, 81.86, 99 };
    // ...
}

See Also

GaugeBase Class

GaugeBase Members

DevExpress.Blazor.Base Namespace