blob: 4341af8e756e4bcf931e6ea045f178c38cdd4261 (
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 SolidBrushPropertyInfo ("SolidBrush", "Windows Only", true,
new[] { "RGB", "sRGB" });
MockedControl.AddProperty<CommonSolidBrush> (brushPropertyInfo);
MockedControl.SetValue(brushPropertyInfo,
new CommonSolidBrush(20, 120, 220, 240, "sRGB"));
}
}
}
|