Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global style disables specific style #20291

Open
Legends opened this issue Feb 1, 2024 · 4 comments
Open

Global style disables specific style #20291

Legends opened this issue Feb 1, 2024 · 4 comments
Labels
area-xaml XAML, CSS, Triggers, Behaviors platform/android 🤖 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@Legends
Copy link

Legends commented Feb 1, 2024

Description

Setting the backgroundColor property of a datatemplate inside of App.xaml disables a style specified in contentpage.

Repo and reproduction steps can be found here: Issue

Steps to Reproduce

Repro:

Repro:

  1. Add Background="Pink" to DataTemplate x:Key="AnimalTemplate" in App.xaml
  2. Run the app
  3. Select a cat
  4. Navigate back to CatsPage.xaml

The previously selected cat is in selected state, but the backgroundColor didn't change.

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/tree/main/8.0/Fundamentals/Shell

Version with bug

8.0.6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

Android 11-API 30, Win 10

Did you find any workaround?

no

Relevant log output

No response

@Legends Legends added the t/bug Something isn't working label Feb 1, 2024
@rmarinho rmarinho added this to the Backlog milestone Feb 2, 2024
@ghost
Copy link

ghost commented Feb 2, 2024

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@rmarinho
Copy link
Member

rmarinho commented Feb 2, 2024

Can you see if you change instead of Background use BackgroundColor like the property used on VSM on the CatsPage.

@Legends
Copy link
Author

Legends commented Feb 2, 2024

Can you see if you change instead of Background use BackgroundColor like the property used on VSM on the CatsPage.

Happens on both

@XamlTest XamlTest added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Mar 12, 2024
@XamlTest
Copy link

XamlTest commented Mar 12, 2024

Verified this on VS 17.10.0 Preview 1.0(8.0.7). Repro on Windows 11, Android 14.0-API34, iOS 17.2 and MacCatalyst with below Project:
Xaminals.zip

@samhouts samhouts removed s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 3, 2024
@samhouts samhouts added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-xaml XAML, CSS, Triggers, Behaviors platform/android 🤖 platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants