Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            MySource m1 = new MySource()
            {
                Finished = "First", Duration = "www", Name = "Xiao", Description = "sdsss"
            };

            ms.Add(m1);
            MySource m2 = new MySource()
            {
                Finished = "Second", Duration = "www", Name = "Li", Description = "such"
            };

            ms.Add(m2);
            MySource m3 = new MySource()
            {
                Finished = "Third", Duration = "www", Name = "Ming", Description = "little"
            };

            ms.Add(m3);
            MySource m4 = new MySource()
            {
                Finished = "Fourth", Duration = "www", Name = "Da", Description = "yeah"
            };

            ms.Add(m4);
            MySource m5 = new MySource()
            {
                Finished = "Fifth", Duration = "www", Name = "Hua", Description = "what"
            };

            ms.Add(m5);

            this.listView.ItemsSource = ms;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            MySource m1 = new MySource() { Finished = "First", Duration = "www", Name = "Xiao", Description = "sdsss" };
            ms.Add(m1);
            MySource m2 = new MySource() { Finished = "Second", Duration = "www", Name = "Li", Description = "such" };
            ms.Add(m2);
            MySource m3 = new MySource() { Finished = "Third", Duration = "www", Name = "Ming", Description = "little" };
            ms.Add(m3);
            MySource m4 = new MySource() { Finished = "Fourth", Duration = "www", Name = "Da", Description = "yeah" };
            ms.Add(m4);
            MySource m5 = new MySource() { Finished = "Fifth", Duration = "www", Name = "Hua", Description = "what" };
            ms.Add(m5);

            this.listView.ItemsSource = ms;
        }