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-11-01 00:54:08 +0300
committerBertrand Le Roy <beleroy@microsoft.com>2017-11-04 02:35:45 +0300
commitea9a0ae96bc7a3f6216849afe692b539f8f3bbfb (patch)
tree12d5b65708535e96e456d340f0a165596ae64f9a /Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
parentc60750205216c8b410f70da6a05207f7e639e6bb (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/MockedSampleControlButton.cs')
-rw-r--r--Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs6
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"));
}
}