The following property like with the same XAML as you use.
Up vote 1 down vote favorite share g+ share fb share tw.
I'm trying to bind to a collection of controls I generate dynamically: And the code: public ObservableCollection CustomFields { get { return GetCustomFields(); } } The Getcustomfields just generates some controls like a ComboBox, textbox etc. The binding seems to work, but the window doesn't show any of my controls. Probably because I need an datatemplate in the itemscontrol. My question is what kind of datatemplate do I need?
Thanks for any help wpf data-binding itemscontrol link|improve this question asked Nov 15 '09 at 18:45Elger456 15% accept rate.
The following property like with the same XAML as you use: public ObservableCollection Controls { get { var collection = new ObservableCollection(); collection. Add(new Button { Content = " return collection; } } Maybe your problem comes from somewhere else... Can you give us the code needed to reproduce the problem?
Thanks, the changing the ObservableCollection to the UIElement type instead of control works. I cannot vote yet sorry. – Elger Nov 15 '09 at 21:21.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.