public LvRowView() { InitializeComponent(); _lv.View = new MyRowView(); _lv.Data = SampleData.CreatePersonsTbl(50); }
void OnLoadData(object sender, RoutedEventArgs e) { var tbl = SampleData.CreatePersonsTbl(int.Parse(((Button)sender).Tag.ToString())); _lvList.Data = tbl; _lvTbl.Data = tbl; _lvTile.Data = tbl; }
public LvViewBase() { InitializeComponent(); _lv.View = Resources["TableView"]; _lv.ViewMode = ViewMode.Table; _lv.GroupName = "bumen"; _lv.Data = SampleData.CreatePersonsTbl(100); }
public LvInScrollViewer() { InitializeComponent(); _lv.View = Resources["ListView"]; //_lv.GroupName = "bumen"; //_lv.ItemHeight = double.NaN; _lv.Data = SampleData.CreatePersonsTbl(50); }
public LvListSelector() { InitializeComponent(); _lv.View = new ListItemSelector { Male = (DataTemplate)Resources["Male"], Lady = (DataTemplate)Resources["Lady"], }; _lv.Data = SampleData.CreatePersonsTbl(50); }
void OnNextPage(PageData p_pd) { INotifyList ls; if (_isTbl) { ls = SampleData.CreatePersonsTbl(p_pd.PageSize); } else { ls = SampleData.CreatePersonsList(p_pd.PageSize); } p_pd.LoadPageData(ls); }
void OnInsertRows(object sender, RoutedEventArgs e) { if (_lv.Data is Table) { var data = SampleData.CreatePersonsTbl(10); foreach (var row in data) { row.InitVal("xm", "新行"); } _lv.Data.InsertRange(0, data); } else { var ls = SampleData.CreatePersonsList(10); foreach (var per in ls) { per.Xm = "新对象行"; } _lv.Data.InsertRange(0, ls); } }
void OnLoadData(object sender, RoutedEventArgs e) { _lv.Data = SampleData.CreatePersonsTbl(int.Parse(((Button)sender).Tag.ToString())); }
public LvTile() { InitializeComponent(); _lv.GroupName = "bumen"; _lv.Data = SampleData.CreatePersonsTbl(200); }
public LvViewEx() { InitializeComponent(); _lv.CellEx = typeof(ViewEx1); _lv.Data = SampleData.CreatePersonsTbl(100); }
public LvContextMenu() { InitializeComponent(); _lv.View = Resources["ListView"]; _lv.Data = SampleData.CreatePersonsTbl(100); }