Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Le Roy <beleroy@microsoft.com>2017-10-04 03:31:03 +0300
committerBertrand Le Roy <beleroy@microsoft.com>2017-11-04 02:35:41 +0300
commit08e37bf17aa5a66c03015331ded68644cc2a9607 (patch)
tree6c7bdaf6f57a5aeca8ea2691b63ff29134bddc86 /Xamarin.PropertyEditing.Windows.Standalone
parentbaba153927db509c3273b60d61fd07c9dd8e65cc (diff)
Add support for color spaces in color picker UI
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone')
-rw-r--r--Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
index dbaf1a7..4341af8 100644
--- a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
+++ b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
@@ -8,9 +8,11 @@ namespace Xamarin.PropertyEditing.Windows.Standalone
public MockedSampleControlButton () : base (new MockSampleControl ())
{
// TODO: Move the declaration of this property to MockSampleControl once SolidBrush is supported on both platforms.
- MockedControl.AddProperty<CommonSolidBrush> ("SolidBrush", "Windows Only");
- MockedControl.SetValue("SolidBrush",
- new CommonSolidBrush(20, 120, 220, 240));
+ var brushPropertyInfo = new SolidBrushPropertyInfo ("SolidBrush", "Windows Only", true,
+ new[] { "RGB", "sRGB" });
+ MockedControl.AddProperty<CommonSolidBrush> (brushPropertyInfo);
+ MockedControl.SetValue(brushPropertyInfo,
+ new CommonSolidBrush(20, 120, 220, 240, "sRGB"));
}
}
}