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