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-09-29 23:21:42 +0300
committerBertrand Le Roy <beleroy@microsoft.com>2017-11-04 02:35:41 +0300
commita3cec2176066e25749ec1b4e959bd989695962e4 (patch)
tree4e0e69b7171537957d4f1c93cf2b64b3b90a6b9c /Xamarin.PropertyEditing.Windows.Standalone
parent509fdcbf566c82d8cbb039e205dcae60970a7633 (diff)
Beginning of color property editor
Diffstat (limited to 'Xamarin.PropertyEditing.Windows.Standalone')
-rw-r--r--Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
index 17d9317..4b16dbd 100644
--- a/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
+++ b/Xamarin.PropertyEditing.Windows.Standalone/MockedSampleControlButton.cs
@@ -1,8 +1,17 @@
+using System.Drawing;
+using Xamarin.PropertyEditing.Drawing;
using Xamarin.PropertyEditing.Tests.MockControls;
namespace Xamarin.PropertyEditing.Windows.Standalone
{
- public class MockedSampleControlButton: MockedControlButton<MockSampleControl> {
- public MockedSampleControlButton () : base(new MockSampleControl ()) { }
+ public class MockedSampleControlButton : MockedControlButton<MockSampleControl>
+ {
+ 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));
+ }
}
}