David Husselmann
2006-05-22 00:08:18 UTC
Hi everyone,
I'm currently writing a custom root designer for a report designer running
inside VS. While learning about the rest of the designer framework, I
stumbled upon the Windows Forms way of doing smart tags, resize handles and
the like - the Behavior Service.
Unfortunately it seems the behavior service was only meant to work with
Windows Forms; not with any other designers. This is manifested in the
VS.NET designer host not even giving me a reference when I do a
GetService(typeof(BehaviorService)).
My question is whether there is any way to make the behavior service (and
all the other good stuff like adorners, glyphs and behaviors) work with a
custom designer that is not winforms?
Any hints will be greatly appreciated. At this stage I have two options:
either duplicate the entire behavior service framework as it stands in .NET,
or fake a windows forms designer to design my reports in (which is quite
kludgy in my opinion).
Regards
David Husselmann
I'm currently writing a custom root designer for a report designer running
inside VS. While learning about the rest of the designer framework, I
stumbled upon the Windows Forms way of doing smart tags, resize handles and
the like - the Behavior Service.
Unfortunately it seems the behavior service was only meant to work with
Windows Forms; not with any other designers. This is manifested in the
VS.NET designer host not even giving me a reference when I do a
GetService(typeof(BehaviorService)).
My question is whether there is any way to make the behavior service (and
all the other good stuff like adorners, glyphs and behaviors) work with a
custom designer that is not winforms?
Any hints will be greatly appreciated. At this stage I have two options:
either duplicate the entire behavior service framework as it stands in .NET,
or fake a windows forms designer to design my reports in (which is quite
kludgy in my opinion).
Regards
David Husselmann