Advertisement
Guest User

Untitled

a guest
Aug 21st, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using System.Windows;
  3.  
  4. namespace WpfApp1
  5. {
  6.     public partial class MainWindow : Window
  7.     {
  8.         List<string> list = new List<string>();
  9.  
  10.  
  11.         public MainWindow()
  12.         {
  13.             InitializeComponent();
  14.  
  15.             for (var i = 0; i < 2000; i++)
  16.                 list.Add(i.ToString());
  17.         }
  18.  
  19.         private void Test_Loaded(object sender, RoutedEventArgs e)
  20.         {
  21.             Test.ItemsSource = list;
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement