C# 在compact framework 3.5中的用户控件(例如多行文本)中定义自定义设计时编辑器
在.NET中,我只会写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
[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
非常感谢!どうもありがとう