I am creating a report designer and so i have a need to add/remove fields and move them around in the designer. I have a custom canvas (extending the Canvas class) with a matrix of labels that I am able to drag around. I would like to build up all these labels dynamically from a databound data source. What would be the best way to do this? Would i create a dependancy propery and then bind to this dependancy, if so how would i manipulate the labels (Add remove, accorindng to the datasource)?. As im new with WPF i would like to get the best possible route forward.
eg:
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
¬ labl1 labl2 labl3 ¬
¬ labl4 labl5 labl6 ¬
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
Thanks.