Richard
2007-12-11 20:00:01 UTC
Hello,
I am trying to write a class that derives from ParentControlDesigner so that
I can pre and post filter properties. But I am unable to figure out what
DesignerAttribute I need to put on my control in order for it to work
properly. Here is a summary example:
public class MyDesigner: ParentControlDesigner
{
}
Case 1: works, but I do not get any behaviors from ParentControlDesigner
(D&D, selection services, etc.)
[Designer(typeof(MyDesigner), typeof(IRootDesigner))]
public class MyControl: UserControl
{
};
Case 2: works wonders, except that MyDesigner is not even created!
[DesignerAttribute(typeof(MyDesigner), typeof(ParentControlDesigner))]
public class MyControl: UserControl
{
};
Case 3: Crashes at runtime, PerformLoad says that it could not find a designer
[DesignerAttribute(typeof(ParentControlDesigner), typeof(IRootDesigner))]
public class MyControl: UserControl
{
};
thank you,
Richard
I am trying to write a class that derives from ParentControlDesigner so that
I can pre and post filter properties. But I am unable to figure out what
DesignerAttribute I need to put on my control in order for it to work
properly. Here is a summary example:
public class MyDesigner: ParentControlDesigner
{
}
Case 1: works, but I do not get any behaviors from ParentControlDesigner
(D&D, selection services, etc.)
[Designer(typeof(MyDesigner), typeof(IRootDesigner))]
public class MyControl: UserControl
{
};
Case 2: works wonders, except that MyDesigner is not even created!
[DesignerAttribute(typeof(MyDesigner), typeof(ParentControlDesigner))]
public class MyControl: UserControl
{
};
Case 3: Crashes at runtime, PerformLoad says that it could not find a designer
[DesignerAttribute(typeof(ParentControlDesigner), typeof(IRootDesigner))]
public class MyControl: UserControl
{
};
thank you,
Richard