Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MockedSampleControlButton.cs « Xamarin.PropertyEditing.Windows.Standalone - github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b9303ea18491d252bc1d17ff611f10b88cebbd7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Xamarin.PropertyEditing.Drawing;
using Xamarin.PropertyEditing.Tests.MockControls;

namespace Xamarin.PropertyEditing.Windows.Standalone
{
	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.
			var brushPropertyInfo = new BrushPropertyInfo ("SolidBrush", "Windows Only", true,
				new[] { "RGB", "sRGB" });
			MockedControl.AddProperty<CommonBrush> (brushPropertyInfo);
			MockedControl.SetValue<CommonBrush>(brushPropertyInfo,
				new CommonSolidBrush(20, 120, 220, 240, "sRGB"));
		}
	}
}