i send the example to mailer@.
i insert this code
<grids:TreeListViewColumn Header="{Binding Autore[0]}" Width="74" >
<DataTemplate>
<TextBlock Text="{Binding Autore[0]}" />
</DataTemplate>
</grids:TreeListViewColumn>
Io look only <TextBlock Text="{Binding Autore}" /> if a populate
albumModel.Children.Add(new TrackTreeNodeModel() { Name = "Spinning", Length = "6:03", Popularity = 2 , Months = new ObservableCollection<string> { "Jan", "Feb", "Mar", "Apr" } });
and i look only header if a populate
string[] Autors = { "Autore0", "Autore1", "Autore2", "Autore3" };
foreach (var mon in Autors)
{
TreeListViewColumn column1 = new TreeListViewColumn();
column1.Header = mon;
column1.DisplayMemberBinding = new System.Windows.Data.Binding(mon);
treeListView.Columns.Add(column1);
}
then I'm forced to insert all the columns in the grid instead I would like to insert only one dynamic one
[Modified 2 years ago]