diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2019-10-08 22:02:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 22:02:59 +0300 |
commit | 3baa35f64016a2a1acb62dcfb5c29cca6461ae9c (patch) | |
tree | 34720b81b910d83dda690a8135fbf7b807d7367b /src | |
parent | 10a41e9f9828b3e299215406eadfde2ee4c9b29f (diff) |
Enable Color TypeConverter on mobile profiles (#356)
We need to ifdef out the `Editor` attribute since System.Drawing.Design is not there on mobile.
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Drawing.Primitives/src/System/Drawing/Color.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/System.Drawing.Primitives/src/System/Drawing/Color.cs b/src/System.Drawing.Primitives/src/System/Drawing/Color.cs index 2853fe7184..c9aba1ec79 100644 --- a/src/System.Drawing.Primitives/src/System/Drawing/Color.cs +++ b/src/System.Drawing.Primitives/src/System/Drawing/Color.cs @@ -24,8 +24,10 @@ namespace System.Drawing #endif #if FEATURE_TYPECONVERTER [TypeConverter(typeof(ColorConverter))] +#if !MOBILE && !XAMMAC_4_5 [Editor ("System.Drawing.Design.ColorEditor, " + Consts.AssemblySystem_Drawing_Design, typeof (System.Drawing.Design.UITypeEditor))] #endif +#endif public readonly struct Color : IEquatable<Color> { public static readonly Color Empty = new Color(); |