-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow string property binding as Color source #9814
Conversation
@@ -41,6 +41,7 @@ public sealed class BindableProperty | |||
static readonly Dictionary<Type, TypeConverter> KnownTypeConverters = new Dictionary<Type, TypeConverter> | |||
{ | |||
{ typeof(Uri), new UriTypeConverter() }, | |||
{ typeof(Maui.Graphics.Color), new ColorTypeConverter() }, |
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.
This is the main change.
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.
That list is only for types we can’t attribute. Don’t we have a converter attribute on colour?
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.
Talked about this with Stephane and is ok to merge, Shane could you review it again?
can we add a xaml test? |
Doesn’t look like the correct way to fix this |
Stephane knows more about this than I do :)
Could you share more details?. Thanks! |
|
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.
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Description of Change
Allow string property binding as Color source.
Issues Fixed
Fixes #9662
Fixes #8390
Fixes #7683