maui
maui copied to clipboard
VerticalStackLayout BackgroundColor is ignored
Description
Latest MAUI.
Steps to Reproduce
<VerticalStackLayout BackgroundColor="Aqua" <Label Text="xyz" /> <Label Text="xyz" /> </VerticalStackLayout>
Link to public reproduction project repository
No response
Version with bug
8.0.3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
NO
Relevant log output
No response
Found
<Style TargetType="VerticalStackLayout"> <Setter Property="Background" Value="{AppThemeBinding Light={StaticResource Gray100}, Dark={StaticResource Gray950}}" /> <Setter Property="Padding" Value="0" /> </Style>
in the Styles.xaml File. After removing the Background Setter it works, but shouldn't the property on the control have a higher priority?
@StephaneDelcroix Could this be a setter specificity issue?
Hi @DominikErnst. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
@DominikErnst what version did this work on for you?
Sorry, I think it was my mistake. I used Property="Background" instead of Property="BackgroundColor". You can close this case.