Skip to main content
All docs
V25.1
  • GaugeBase.RedrawOnResize Property

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

    Namespace: DevExpress.Blazor.Base

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

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

    Property Value

    Type Default Description
    Boolean true

    true to redraw the component; otherwise, false.

    Remarks

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

    Bar Gauge - Redraw the gauge on resizing

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

    <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