-
Notifications
You must be signed in to change notification settings - Fork 338
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
Modify ColorConverters to support two-way bindings #1544
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@brminnick there is a discussion where I agreed there is a bug in our converters, they are currently only one way so I suggested we would make them two way. |
Apologies. Re-opening. Please update the PR Description. It is currently just the blank template. |
how do I do that, this is my first contibrution also here is the discution |
@eduardoagr thank you for making the effort to provide this implementation. I am hopeful we can make it a more complete offering for developers to use our Color based converters in the toolkit. I would like to refer back to my point in our original discussion though:
I think the changes that we will want to make would be to modify the classes in this file: Do you think you would be happy to make those changes instead of introducing a new converter like the initial work does inside this PR? |
Aplogies for the mistake, I updated the template I also want to update the documentation for converter, how I can do that? I fout out hat in the documentation, there is only the guide of how to use this is XAML pages, but we can also make it globally |
Done |
@eduardoagr sorry I didn't fully explain everything that was required because I thought the compiler would have provided the guidance. By changing the converters base class from As for the documentation we have a separate repository where you can submit a PR to. The repo is at: https://github.com/MicrosoftDocs/CommunityToolkit |
Do you think we can schedule a team call sometime, to have more instrutin I also wanted t talk to you abount including a template that already includes the MVVM Comunity toolkit and Maui Community toolkit |
Yes I'd be happy to join a call and talk through the changes if that helps. We do also have a Discord server that provides a mechanism for discussing contributions among other things: https://discord.gg/PppdVjWA As for the template though it's not something we will implement however you can use the extension mentioned in your original discussion on the topic: #1505 |
what is yur timezone, so I can program the tams metting |
src/CommunityToolkit.Maui.UnitTests/Converters/BaseConverterTests.cs
Outdated
Show resolved
Hide resolved
The implementation looks not finished. You changed Rgb converter to BaseConverter, but Rgba remains BaseOneWayConverter. |
I'm going to try and jump in this and get it finished off |
|
@eduardoagr apologies for the delay in getting this sorted. Would you mind please agreeing to the CLA? |
How do I sign |
@dotnet-policy-service agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just sign
That's great thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @eduardoagr. I'll aim to update our docs shortly
Description of Change
Added a new HexToColor converter
Linked Issues
We need a way to convert the RGB color to a Maui color, that Labels Buttons, etc. understand.
PR Checklist
approved
(bug) orChampioned
(feature/proposal)main
at time of PRAdditional information