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

Does SfBadgeView support styles set in Styles.xaml

Hi, I've set up a style for the badgeview but when set to the Style of the SfBadgeView control it just defaults to it's base style.  Does the badgview support attaching a preset style?



 <Style x:Key="BadgeStyle" TargetType="sfcore:SfBadgeView">
     <Setter Property="BadgeSettings">
            <Setter.Value>
            <sfcore:BadgeSettings
                CornerRadius="100"
                StrokeThickness="0"
                FontAttributes="Bold"
                BadgeAlignment="End"
                FontSize="8"
                Position="TopRight"
                TextColor="White"
                Background="#7C8CA7"/>
           </Setter.Value>
        </Setter>
    </Style>


Then I set it in the view : 

 <sfcore:SfBadgeView Style="{StaticResource BadgeStyle}"

but it never takes on the style, setting the style directly in the view works though?


Regards

Shaun


3 Replies

SR Shivani Ramakrishnan Syncfusion Team January 5, 2023 12:34 PM UTC

Hi Shaun,


Currently, we are working on the reported query on high priority and we will let you know the details on Jan 9th, 2023 . We appreciate your patience until then.


Regards,

Shivani




SR Shivani Ramakrishnan Syncfusion Team January 9, 2023 03:35 PM UTC

Hi Shaun,

 

We have checked the reported issue "Style not working for BadgeSettings property in SfBadgeView". We have checked the same on our side and the issue was reproduced. We have confirmed this as a bug and logged a defect report. You can track the status of the bug from the below link.

 

 

Link: https://www.syncfusion.com/feedback/40270/style-not-working-for-badgesettings-property-in-sfbadgeview

 

 

We will provide a patch for this issue on 23rd January, 2023. We appreciate your patience until then.

 

 

Note: The provided feedback link is private, and you need to log in to view this feedback.

 

 

If you have any more specifications/precise replication procedures or a scenario to be tested, you can add them as a comment in the portal.

 

Regards,
Shivani



VV Vijayakumar Viswanathan Syncfusion Team January 23, 2023 11:40 AM UTC

Hi Shaun,

We have fixed the reported issue “Style not working for BadgeSettings property in SfBadgeView". Currently, the patch was generated in the 20.4.0.44 version. Please get the custom patch NuGet from the attachment.

  

Please note that we have created this patch for version 20.4.0.44 specifically, to resolve the issue reported in this ticket. If you have received other patches for the same version for other products, please apply all patches in the order received.

 

Note: Please refer to the below link to apply the custom patch,

 

https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache

 

We will include the fix in our upcoming weekly release on 24 January 2023.

 

Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.


Attachment: Syncfusion.Maui.Core.20.4.44_1f73dc29.zip

Loader.
Live Chat Icon For mobile
Up arrow icon