We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Style SfLinearGauge.LabelStyle. gauge:GaugeLabelStyle from App.xaml ResourceDictionary

how can i globaly set a Styles for all "SfLinearGauge.LabelStyle. gauge:GaugeLabelStyleTextColor value using App.xaml


i tried this, but i get an exception when i  load the page with the gauge

<Style TargetType="gauge:SfLinearGauge">
                <Setter Property="gauge:SfLinearGauge.LabelStyle">
                        <gauge:GaugeLabelStyle TextColor="{AppThemeBinding Light={StaticResource PrimaryColorLight}, Dark={StaticResource PrimaryColorDark}}" />

2 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team December 29, 2022 04:34 PM UTC

Hi Andreas,

We can reproduce the reported problem and we have already logged an internal bug for the reported problem. We will fix and include it in our upcoming weekly NuGet release, which is scheduled to be rolled out next week. We appreciate your patience until then.



ET Eswaran Thirugnanasambandam Syncfusion Team January 4, 2023 10:16 AM UTC

We have fixed the internal bug “Exception occurs when applying global style in the gauge” and the fix is included in our weekly NuGet of Jan 4, 2023. 

NuGet Version: v20.4.0.42

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you require any further assistance.

Live Chat Icon For mobile
Up arrow icon