Description
If you create an implicit style with VisualStateGroups, they are no longer overriden in Net 8.
In the sample repo i created an implicit style for all buttons that sets the background to green when visualState is Normal.
I then add a button and override the background to be orange.
In Net7 the button appears orange - this is expected.
In Net8 the button stays green meaning I can no longer override the background color.
Steps to Reproduce
- Download repo
- Run on both net7 and net8 and see the difference - in Net7 it is orange, but in Net8 it is green.
Link to public reproduction project repository
https://github.com/Zack-G-I-T/ImplicitStyleIssue
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.96
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
Description
If you create an implicit style with VisualStateGroups, they are no longer overriden in Net 8.
In the sample repo i created an implicit style for all buttons that sets the background to green when visualState is Normal.
I then add a button and override the background to be orange.
In Net7 the button appears orange - this is expected.
In Net8 the button stays green meaning I can no longer override the background color.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Zack-G-I-T/ImplicitStyleIssue
Version with bug
8.0.0-rc.2.9373
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.96
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response