0
내 컨트롤에 VS2010 (또는 그 문제의 경우 VS2008)에 스마트 태그를 추가하면 VS 충돌이 발생합니다.Visual Studio의 스마트 태그 (일명 ActionList) 충돌
internal class DataEditorDesigner : ComponentDesigner {
[...]
public override DesignerActionListCollection ActionLists {
get {
var lists = new DesignerActionListCollection();
lists.AddRange(base.ActionLists);
lists.Add(new DataEditorActionList(Component));
return lists;
}
}
}
internal class DataEditorActionList : DesignerActionList {
public DataEditorActionList(IComponent component) : base(component) {}
public override DesignerActionItemCollection GetSortedActionItems() {
var items = new DesignerActionItemCollection();
items.Add(new DesignerActionPropertyItem("DataSource", "Data Source:", "Data"));
items.Add(new DesignerActionMethodItem(this, "AddControl", "Add column..."));
return items;
}
private void AddControl() {
System.Windows.Forms.MessageBox.Show("dpa");
}
}
데이터 소스 속성이 같은 선언 : 그것을 디버깅하는 방법에 대한
[AttributeProvider(typeof (IListSource))]
[DefaultValue(null)]
public object DataSource {
[...]
어떤 아이디어
다음 디자이너는 작업 목록에 사용?
스마트 태그가 매우 스마트하지 않습니다. –
http://connect.microsoft.com/의 Microsoft Connect에이 문제를 제출하십시오. 아마도이 문제는 이미 알려져 있으며 해결 방법이있을 수 있습니다. –