Migrate from SfCircularGauge.Headers to SfRadialGauge

We are using 26.1.35 of Syncfusion MAUI and are migrating from a Xamarin Forms project 

In XF we used Headers with SfCircularGauge. What has replaceed Headers in the SfRadialGauge?


<gauge:SfCircularGauge.Headers>

    <gauge:Header

        FontAttributes="Bold"

        ForegroundColor="Gray"

        Position="0.5,0.3"

        Text="SpO2"

        TextSize="28"

        VerticalHeaderPosition="Center" />

    <gauge:Header

        FontAttributes="Bold"

        FontFamily="OpenSansSemiBold"

        ForegroundColor="{StaticResource DarkColor}"

        Position="0.5,0.5"

        Text="{Binding SPO2}"

        TextSize="28"

        VerticalHeaderPosition="Center" />

    <gauge:Header

        FontAttributes="Bold"

        ForegroundColor="Gray"

        Position="0.5,0.7"

        Text="%"

        TextSize="24"

        VerticalHeaderPosition="Center" />


</gauge:SfCircularGauge.Headers>


2 Replies

PA Pat August 19, 2024 10:10 AM UTC

Sorry, I found it in previous Views I had migrated. RadialAxis.Annotations can have a GaugeAnnotation and that has a content property that can take a whole layout




VO Vishal Omprasad Syncfusion Team August 20, 2024 01:02 PM UTC

Hi Pat,

You can achieve your requirement using the Annotation support. Please refer to the following UG documentation link to know more about Annotation in .NET MAUI SfRadialGauge: Annotation.

Please refer to the following migration documentation page to know more about the difference in APIs between Xamarin and MAUI: Migration.

We hope that this helps you. Please let us know if you need further assistance.

Regards,
Vishal O.


Loader.
Up arrow icon