maui icon indicating copy to clipboard operation
maui copied to clipboard

VerticalStackLayout BackgroundColor is ignored

Open DominikErnst opened this issue 1 year ago • 4 comments

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

DominikErnst avatar Jan 25 '24 14:01 DominikErnst

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?

DominikErnst avatar Jan 25 '24 15:01 DominikErnst

@StephaneDelcroix Could this be a setter specificity issue?

drasticactions avatar Jan 25 '24 15:01 drasticactions

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.

ghost avatar Jan 26 '24 15:01 ghost

@DominikErnst what version did this work on for you?

PureWeen avatar Jan 26 '24 15:01 PureWeen

Sorry, I think it was my mistake. I used Property="Background" instead of Property="BackgroundColor". You can close this case.

DominikErnst avatar Jan 29 '24 07:01 DominikErnst