Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Feb 23, 2012 11:38 AM|LINK
I am trying to build a custom control from its string representation.
The full XML for the control would be something like:
<canvas:LineFrame LineColor="Blue" SourcePoint="10,10" TargetPoint="100,100" />
<canvas:LineFrame LineColor="Red" SourcePoint="100,100" TargetPoint="100,150" />
I am creating a ControlBuilder like this:
ControlBuilder cb = new MyControlBuilder();
cb.Init(null, null, typeof(Canvas), "canvas", "xxx", new Hashtable());
Canvas canvas = cb.BuildObject() as Canvas;
content has all markup from <Frames> to </Frames>, including.
It works fine, except that the Frames property is not set.
What can I do? Must I create a custom ControlBuilder?