SyndicationItem has a Title.Text property. You need to bind the ListView so that Title.Text is Title.Text .

Try so

 private class Displayer : IDisplay { //listView = listView1 из разметки public ListView listView { get; set; } public void Display(List<SyndicationItem> items) { listView.Dispatcher.Invoke(() => { listView.DataContext = new MyModel() {Items = items}; }); } private class MyModel { public List<SyndicationItem> Items { get; set; } } } <ListView x:Name="listView1" SelectionChanged="listView_SelectionChanged" ItemsSource="{Binding Items}" HorizontalAlignment="Left" Height="277" Margin="10,26,0,0" VerticalAlignment="Top" Width="360" FontSize="14"> <ListView.View> <GridView> <GridViewColumn/> </GridView> </ListView.View> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Path=Title.Text}" /> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListView> 

Nothing comes out

UPDATE Solved.

 <ListView x:Name="listView1" SelectionChanged="listView_SelectionChanged" ItemsSource="{Binding Items}" HorizontalAlignment="Left" Height="277" Margin="10,26,0,0" VerticalAlignment="Top" Width="360" FontSize="14"> <ListView.View> <GridView AllowsColumnReorder="true" ColumnHeaderToolTip="Title text"> <GridViewColumn DisplayMemberBinding= "{Binding Path=Title.Text}" Header="Title text"/> </GridView> </ListView.View> </ListView> 

Same class

  • one
    Try simply without using the DataTemplate to bind data through a DisplayMemberBinding , look here in the Binding of data to the ListView control item . After that, try to apply styles to the cells of the column via the DataTemplate . - Denis Bubnov
  • DisplayMemberBinding also tried, does not come out - Yaktens Tied
  • Try to describe in more detail what you get as a result. Maybe the data is not filled, so it does not go, or the data is in order? - Denis Bubnov
  • All, thank you, read the documentation that you threw me, everything turned out. - Yaktens Teed
  • That's great. And what was wrong, tell me? ) - Denis Bubnov

0