I have written the code below:
XAML code:
<ListView ItemsSource="{x:Bind players}">
***<ListView.ItemTemplate>***
***<DataTemplate x:DataType="local:Numbers">***
***<TextBlock Text="{x:Bind num}"/>***
***</DataTemplate>***
***</ListView.ItemTemplate>***
```***</ListView>***
C# code:
***public sealed partial class MainWindow : Window***
***{***
***ObservableCollection<Numbers> players = new ObservableCollection<Numbers>();***
***//More code here***
***}***
***class Numbers***
***{***
public Numbers(int x)
{
***this.num = x;***
}
internal int num;
When I run the program and add new "Numbers" instances in the above observable collection the ListView reflects these changes by adding the new instances. The question is how this is happening since the default Mode for x:Bind is OneTime and since the OneTime means that the ListView can't listen the Update Signals from the Observable Collection.