Design Time Binding approach for components

Hello Guys, I had been using this forum, and was able to resolve a lot of problems. I need your help once again.

What i am trying to acheive:
I had to define a binding between visual & Non-Visual components at design time.

Description:
visual component is a user control and non - visual components are derived from component class. I added ComponentDesigner attribute for Non-Visual components and ControlDesigner attribute for Visual Components.

For our POC we had a textBox visual component and a CustomString non-visual component.
Both have their dedicated designers. 
When we drop a CustomString a pop-up is opened, and it can be attached to a visual component.
All the available visual-components will be displayed in a combobox, where in the developer
can select one and move to the next step. In next step the screen will show
the events that this component raises and the actions which it can subscribe for the non-Visual
component selected.

This way the binding mechanism is defined at design time by drag & drop approach.
The same is applicable when we drop a visual-component.

As of date we are able to open a pop-up on dragging a component (visual & non-visual)
We are facing problem in getting the metadata info at design time, as when we query the
container of our form on which the components are being dragged. its returning a null.

Can anyone help in this

Manish


Answer this question

Design Time Binding approach for components

  • Design Time Binding approach for components