コード例 #1
0
ファイル: LvRowView.xaml.cs プロジェクト: Daoting/dt
        public LvRowView()
        {
            InitializeComponent();

            _lv.View = new MyRowView();
            _lv.Data = SampleData.CreatePersonsTbl(50);
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public LvViewBase()
 {
     InitializeComponent();
     _lv.View      = Resources["TableView"];
     _lv.ViewMode  = ViewMode.Table;
     _lv.GroupName = "bumen";
     _lv.Data      = SampleData.CreatePersonsTbl(100);
 }
コード例 #4
0
 public LvInScrollViewer()
 {
     InitializeComponent();
     _lv.View = Resources["ListView"];
     //_lv.GroupName = "bumen";
     //_lv.ItemHeight = double.NaN;
     _lv.Data = SampleData.CreatePersonsTbl(50);
 }
コード例 #5
0
        public LvListSelector()
        {
            InitializeComponent();

            _lv.View = new ListItemSelector
            {
                Male = (DataTemplate)Resources["Male"],
                Lady = (DataTemplate)Resources["Lady"],
            };
            _lv.Data = SampleData.CreatePersonsTbl(50);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
 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);
     }
 }
コード例 #8
0
 void OnLoadData(object sender, RoutedEventArgs e)
 {
     _lv.Data = SampleData.CreatePersonsTbl(int.Parse(((Button)sender).Tag.ToString()));
 }
コード例 #9
0
 public LvTile()
 {
     InitializeComponent();
     _lv.GroupName = "bumen";
     _lv.Data      = SampleData.CreatePersonsTbl(200);
 }
コード例 #10
0
 public LvViewEx()
 {
     InitializeComponent();
     _lv.CellEx = typeof(ViewEx1);
     _lv.Data   = SampleData.CreatePersonsTbl(100);
 }
コード例 #11
0
 public LvContextMenu()
 {
     InitializeComponent();
     _lv.View = Resources["ListView"];
     _lv.Data = SampleData.CreatePersonsTbl(100);
 }