tailieunhanh - Pro WPF in C# 2010 phần 8

Đây là một trong những cuốn sách tốt nhất về WPF 4 của tác giả Adam Nathan. Cuốn sách được in với đầy đủ màu sắc, tất các các mã lệnh đều có cú pháp tô sáng. Nó bao gồm những lời giải thích tốt nhất về phiên bản 3 và bao gồm cả những chương mới về cảm ứng đa điểm, XAML 2009, VSM, cải thiện việc biểu diễn văn bản, và còn nhiều thông tin đáng để chúng ta tìm hiểu. | C H A P T E R 22 Lists Grids and Trees So far you ve learned a wide range of techniques and tricks for using WPF data binding to display information in the form you need. Along the way you ve seen many examples that revolve around the lowly ListBox control. Thanks to the extensibility provided by styles data templates and control templates even the ListBox and its similarly equipped sibling the ComboBox can serve as remarkably powerful tools for displaying data in a variety of ways. However some types of data presentation would be difficult to implement with the ListBox alone. Fortunately WPF has a few rich data controls that fill in the blanks including the following ListView. The ListView derives from the plain-vanilla ListBox. It adds support for column-based display and the ability to switch quickly between different views or display modes without requiring you to rebind the data and rebuild the list. TreeView. The TreeView is a hierarchical container which means you can create a multilayered data display. For example you could create a TreeView that shows category groups in its first level and shows the related products under each category node. DataGrid. The DataGrid is WPF s most full-featured data display tool. It divides your data into a grid of columns and rows like the ListView but has additional formatting features such as the ability to freeze columns and style individual rows and it supports in-place data editing. In this chapter you ll look at these three key controls. What s New Early versions of WPF lacked a professional grid control for editing data. Fortunately the powerful DataGrid joined the control library in .NET SP1. 709 CHAPTER 22 LISTS GRIDS AND TREES The Listview The ListView is a specialized list class that s designed for displaying different views of the same data. The ListView is particularly useful if you need to build a multicolumn view that displays several pieces of information about each data item. The ListView derives from .

TÀI LIỆU MỚI ĐĂNG
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.