Tải bản đầy đủ (.pptx) (16 trang)

Itemscontrol (1)

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (666.66 KB, 16 trang )

ItemsControl

1


Items control

2


Better with grid

3


How about collection?

Can we customized this instead of vertical?
4


ControlTemplate

5


Result?

6



Making item clickable
 Wrap all inside an invisible button

7


Accessing clicked item
 DataContext

8


Mouse over effect

9


Make class notify
changed

10


Change list to binding
list

11


Understand reference

 The parameter may be understood as pass
by value
 Is it?

12


Create an edit window

13


Code behind

14


Popup menu

15


Homework
 Read all your items from Excel file
 Dislay list of all item in collection fashion
 Add, Update, Delete an item

16




Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×