Click here to Skip to main content
15,887,083 members

Comments by Debashis Pal (Top 2 by date)

Debashis Pal 6-Sep-12 0:32am View    
If you place the dynamic controls inside a Panel like StackPanel, WrapPanel, etc. (As described in the example), overlapping should not occur. Also you must play with the Margin, HorizontalAlignment, VerticalAlignment of the control see the differences.
Debashis Pal 5-Sep-12 2:39am View    
Thanks Ganesh. But seems the article link is missing. However I am setting the DataContext. The problem is, if I use binding inside data template as:
Text="{Binding FirstName}"
This works fine. But want it to be dynamic and reusable, so trying to make it as:
Text="{Binding FieldName}"
The binding should be with the value of FieldName property (e.g. FirstName, LastName etc as Mentioning while creating the control. How to get value of FieldName and "bind" with the "value" of FieldName property. Please help.