http://www.fileden.com/files/2007/2/5/737151/png2.jpg
As you can see it won't stretch the item to the end of the box. I want the item to stretch and therefore change in size.How can I achieve it?
This is my XAML:
And this is how I add the item with C#:
CorrWord.Items.Add(String.Format("{0}\t\t{1}", word.ToUpper(), word.Length));
HorizontalContentAlignment="Stretch" does not work and I don't know what to use.
Appreciate any help!
Vishnujeet KumarPosted Feb 19, 2013, 1:05 PM
Pls learn Datatemplate in wpf, i modified your code.
Xaml code
Code Behind