diff options
author | Bertrand Le Roy <beleroy@microsoft.com> | 2017-11-01 00:54:08 +0300 |
---|---|---|
committer | Bertrand Le Roy <beleroy@microsoft.com> | 2017-11-04 02:35:45 +0300 |
commit | ea9a0ae96bc7a3f6216849afe692b539f8f3bbfb (patch) | |
tree | 12d5b65708535e96e456d340f0a165596ae64f9a /Xamarin.PropertyEditing.Windows.Standalone | |
parent | c60750205216c8b410f70da6a05207f7e639e6bb (diff) |
Move the solid brush editor to a tab, add a tab for no brush, and make the brush editor abstract enough to accommodate for any type of brush in the future
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone')
-rw-r--r-- | Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs index 4341af8..b9303ea 100644 --- a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs +++ b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs @@ -8,10 +8,10 @@ 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. - var brushPropertyInfo = new SolidBrushPropertyInfo ("SolidBrush", "Windows Only", true, + var brushPropertyInfo = new BrushPropertyInfo ("SolidBrush", "Windows Only", true, new[] { "RGB", "sRGB" }); - MockedControl.AddProperty<CommonSolidBrush> (brushPropertyInfo); - MockedControl.SetValue(brushPropertyInfo, + MockedControl.AddProperty<CommonBrush> (brushPropertyInfo); + MockedControl.SetValue<CommonBrush>(brushPropertyInfo, new CommonSolidBrush(20, 120, 220, 240, "sRGB")); } } |