-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPageViewModel.cs
40 lines (34 loc) · 954 Bytes
/
MainPageViewModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Test_CollectionView
{
public class MainPageViewModel
{
private int CONST_NumberOfItems = 200;
public MainPageViewModel()
{
prp_StockCards = new ObservableCollection<Models.StockCard>();
for (int i = 0; i < CONST_NumberOfItems; i++)
{
Models.StockCard tmp_StockCard = new Models.StockCard();
prp_StockCards.Add(tmp_StockCard);
}
}
private ObservableCollection<Models.StockCard> prp_StockCards;
public ObservableCollection<Models.StockCard> StockCards
{
get
{
return prp_StockCards;
}
set
{
prp_StockCards = value;
}
}
}
}