tailieunhanh - 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 .
đang nạp các trang xem trước