Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/268.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在compact framework 3.5中的用户控件(例如多行文本)中定义自定义设计时编辑器_C#_Compact Framework - Fatal编程技术网

C# 在compact framework 3.5中的用户控件(例如多行文本)中定义自定义设计时编辑器

C# 在compact framework 3.5中的用户控件(例如多行文本)中定义自定义设计时编辑器,c#,compact-framework,C#,Compact Framework,在.NET中,我只会写 [Editor(typeof(System.ComponentModel.Design.MultilineStringEditor), typeof(System.Drawing.Design.UITypeEditor))] public string MultiLineText { get; set; } 获取字符串属性的多行编辑器 但是,在紧凑型框架中,这是不可能的,因为不包括System.ComponentModel。 我已经有了一个DesigntimeAttri

在.NET中,我只会写

[Editor(typeof(System.ComponentModel.Design.MultilineStringEditor), typeof(System.Drawing.Design.UITypeEditor))]
public string MultiLineText { get; set; }
获取字符串属性的多行编辑器

但是,在紧凑型框架中,这是不可能的,因为不包括
System.ComponentModel

我已经有了一个
DesigntimeAttributes.xmta
文件,我想我必须在这里定义它,但我找不到一个如何实现这一点的示例。

以下xmta条目在我的VS2008上起了作用:

<Property Name="MultiLineText">
  <Browsable>true</Browsable>
  <Editor>
    <BaseType>System.Drawing.Design.UITypeEditor, System.Drawing</BaseType>
    <Type>System.ComponentModel.Design.MultilineStringEditor, System.Design</Type>
  </Editor>
</Property>

真的
System.Drawing.Design.UITypeEditor,System.Drawing
System.ComponentModel.Design.MultilineEditor,System.Design
非常感谢!どうもありがとう