TAILIEUCHUNG - Microsoft ADO .NET 4 Step by Step - p 39

Xây dựng các dự án WPF rất đơn giản bằng cách kéo-và-thả các kỹ thuật, nhưng khi dự án ví dụ chứng minh, nó có thể chỉ xem các hồ sơ ban đầu trong bảng đến. Các ngôn ngữ cụ thể các dự án sau đây thêm các tính năng điều hướng. | 356 Microsoft 4 Step by Step 5. Run the program. When the form appears it displays the first record from the CourseCatalog table. Chapter 21 Binding Data with 357 Building the WPF project is simple using drag-and-drop techniques but as the example project demonstrates it s possible to view only the initial record in the incoming table. The following language-specific projects add navigation features. Adding Navigation to a Data-Bound WPF Window C Note This exercise continues the initial WPF exercise in this section. 1. Add four Button controls from the Toolbox panel to the WPF window surface. Name the buttons ActFirst ActPrevious ActNext and ActLast set their Content property values to First Previous Next and Last respectively. 2. Double-click the ActFirst button control. When the event handler appears add the following code ----- Move to the first record in the table. catalogSource courseCatalogViewSource 3. Back on the window design surface double-click the ActPrevious button control. When the event handler appears add the following code ----- Move to the previous record in the table. catalogSource courseCatalogViewSource if 0 358 Microsoft 4 Step by Step 4. Back on the window design surface double-click the ActNext button control. When the event handler appears add the following code ---- Move to the next record in the table. catalogSource courseCatalogViewSource if 5. Back on the window design surface double-click the

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.