Skip to main content

RadialGauge.StretchToFit Property

Gets or sets whether the gauge is resized to best fit the page. This is a bindable property.

Namespace: DevExpress.Maui.Gauges

Assembly: DevExpress.Maui.Gauges.dll

NuGet Package: DevExpress.Maui.Gauges

Declaration

public bool StretchToFit { get; set; }

Property Value

Type Default Description
Boolean True

true if the gauge is stretched to fit the page; otherwise, false and the gauge’s size is set according to its MinimumHeightRequest and MinimumWidthRequest property values.

Remarks

When enabled, the StretchToFit property makes the gauge occupy the maximum available square area to be fully visible on the page. Otherwise, the gauge’s size is set according to its MinimumHeightRequest and MinimumWidthRequest properties.

The following image shows gauges with different StretchToFit property values:

DevExpress Gauges for .NET MAUI - The StretchToFit property in action

<dx:DXStackLayout Orientation="Vertical">

    <dxga:RadialGauge StretchToFit="False" 
                      MinimumHeightRequest="200" MinimumWidthRequest="200" 
                      Margin="4">
        <dxga:RadialScale .../>
    </dxga:RadialGauge>
    <dxga:RadialGauge StretchToFit="True" 
                      MinimumHeightRequest="200" MinimumWidthRequest="200" 
                      Margin="4">
        <dxga:RadialScale .../>
    </dxga:RadialGauge>

</dx:DXStackLayout>
See Also