From c5d9e5f6d66aa61a93e7e1699fd7eab9497188e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Su=C3=A1rez?= Date: Thu, 2 Mar 2023 18:58:09 +0100 Subject: [PATCH] Allow string property binding as Color source (#9814) Fixes #9662 Fixes #8390 --- .../Pages/Controls/ButtonPage.xaml | 6 +++ .../Pages/Controls/ButtonPage.xaml.cs | 2 + src/Controls/src/Core/BindableProperty.cs | 1 + .../tests/Xaml.UnitTests/ColorConverter.xaml | 12 ++++++ .../Xaml.UnitTests/ColorConverter.xaml.cs | 39 +++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 src/Controls/tests/Xaml.UnitTests/ColorConverter.xaml create mode 100644 src/Controls/tests/Xaml.UnitTests/ColorConverter.xaml.cs diff --git a/src/Controls/samples/Controls.Sample/Pages/Controls/ButtonPage.xaml b/src/Controls/samples/Controls.Sample/Pages/Controls/ButtonPage.xaml index 7187ddd0ae0b..bb41724e7b4f 100644 --- a/src/Controls/samples/Controls.Sample/Pages/Controls/ButtonPage.xaml +++ b/src/Controls/samples/Controls.Sample/Pages/Controls/ButtonPage.xaml @@ -40,6 +40,12 @@