diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs | 8 |
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")); } } } |