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

[BUG] CompareConverter sample does not work (Label does not change color) #796

Closed
1 task done
michelmoorlag opened this issue Nov 30, 2022 · 6 comments · Fixed by #897
Closed
1 task done

[BUG] CompareConverter sample does not work (Label does not change color) #796

michelmoorlag opened this issue Nov 30, 2022 · 6 comments · Fixed by #897
Labels
bug Something isn't working

Comments

@michelmoorlag
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I open the samples and go to the CompareConverterPage the Label does not change color when sliding the range silder.

Expected Behavior

I expect the label to change between Lightgreen and PaleVioletRed but it has always the default background color

Steps To Reproduce

  1. Checkout this repository
  2. Open the samples solution
  3. Set the CommunityToolkit.Maui.Sample as start project
  4. Run it on Android
  5. Open the Converters/CompareConverter Page
  6. Move the range silder back and forth

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

Environment

- .NET MAUI CommunityToolkit: Latest Repository
- OS: Windows10 Pro (22H2) Build: 19045.2251
- .NET MAUI: 7.1.00

Anything else?

It can be fixed by adding the following to the page resource dictionary:

<Color x:Key="LightGreen">LightGreen</Color> <Color x:Key="PaleVioletRed">PaleVioletRed</Color>
And the set the True- and FalseObject like this:
TrueObject={StaticResource LightGreen}, FalseObject={ StaticResource PaleVioletRed}

I created a branch with the fix but I get a 403 when I try to Push the branch.

@michelmoorlag michelmoorlag added bug Something isn't working unverified labels Nov 30, 2022
@VladislavAntonyuk
Copy link
Collaborator

@michelmoorlag you need to fork the repository and then you will be able to push your changes

@michelmoorlag
Copy link
Author

@VladislavAntonyuk, Can I then make a pull request from the fork and would that be helpfull?

@VladislavAntonyuk
Copy link
Collaborator

Yes, sure. All PRs are welcome, if you follow the flow described in readme. You are on the right way.

we have a plan to create some demos for newcomers from discussion to merged PRs

@michelmoorlag
Copy link
Author

@VladislavAntonyuk
Ok thank you. Should this bug be verified and approved first before I start? Or can I just fork, fix and request a pr?

I read the readme but its about the flow requesting new features, not about the technical details like you need to fork etc

@VladislavAntonyuk
Copy link
Collaborator

I reproduced the issue and removed the unverified label.

@pictos
Copy link
Member

pictos commented Dec 27, 2022

@michelmoorlag for bug fixes you can go and open a PR and reference this issue. Let me know if you need any help

VladislavAntonyuk added a commit that referenced this issue Jan 18, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Nov 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants