TAILIEUCHUNG - Lập trình .net 4.0 và visual studio 2010 part 56

Bây giờ bạn có thể định nghĩa một nguồn dữ liệu mới thiết lập được sử dụng chỉ trong thiết kế xem. Điều này có thể hữu ích để cho phép các nhà thiết kế để xem cách thay đổi định dạng sẽ xem xét. Tại thời điểm viết tôi không có thông tin về tính năng này | CHAPTER 15 WPF AND SILVERLIGHT Design Time Data Binding You can now define a new data source setting that is used just in design view. This could be useful to allow designers to see how formatting changes would look. At the time of writing I have no information on this feature. New Image Picker A new image picker dialog has been added that allows you to easily select images and will take care of formatting the returned path for you see Figure 15-6 . Figure 15-6. New image picker Improved Grid Designer VS2010 adds a new option to the DataGrid control to allow you to easily define how columns and rows should be sized. This window will appear when you define columns and rows and then hover over it. The menu allows you to choose the following options Fixed . 200 Star weighted proportion or Auto where the size is determined by the contents . See Figure 15-7. 370 CHAPTER 15 WPF AND SILVERLIGHT Figure 15-7. New grid designer feature Improved Error Handling for User Controls In VS2008 if you added a control to a page that contained an error it would not appear and you would be left with no clue about what the error could be. This improves in VS2010 because the editor will now give you a detailed exception message allowing you to easily debug the problem see Figure 15-8 . Note that until the exception is fixed the designer will be read only. 371 CHAPTER 15 WPF AND SILVERLIGHT Figure 15-8. Improved error handling for user controls Static Resource and Designer Fix Previously if a static resource was declared in you could not use it in the designer. In VS2010 you can. Drag-and-Drop Data Binding I m not a big fan of drag-and-drop data binding and I think it s fair to say that most programmers will rightly scorn such functionality. However this type of feature can be very useful for quickly putting together simple data entry forms and prototyping applications. VS2010 includes new functionality to easily create data forms and creates some .

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.