Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Ví dụ tiếp theo có một tài liệu XML có chứa nhiều tài liệu XML của kiểu và đi qua chúng. Mỗi để bộ phim được chuyển tiếp đến nhà cung cấp phim qua fax. Tài liệu này được đi qua như sau Đọc phần tử gốc: Quy trình mỗi phần tử quá trình mỗi phần tử fax Gửi cho mỗi đơn hàng bộ phim ở đâyCác phác thảo cơ bản của chương trình | 622 I CHAPTER 17 WPF DESKTOP APPLICATIONS Don t worry about being exactly on 40 because after you ve selected your two points you are going to switch to the XAML view. Now instead of the previous display you have code similar to what appears here Window x Class MainWindow xmlns http schemas.microsoft.com winfx 2006 xaml presentation xmlns x http schemas.microsoft.com winfx 2006 xaml Title ProVB_WPF Height 350 Width 525 Name MainWindow Grid Grid.RowDefinitions RowDefinition Height 45 RowDefinition Height 215 RowDefinition Height 40 Grid.RowDefinitions Grid Window Code snippet from MainWindow.xaml Note if instead of working along with the text you are looking at the sample download keep in mind that the download includes all of the changes that will be made during the creation of this first step. The preceding snippet includes a few edits that you can reproduce at this point. Note that the title of the window has been modified to match the project name. The XAML now includes a new section related to the Grid.RowDefinitions. This section contains the specification of sections within the points in the grid. When you selected those points in the designer you were defining these sections. The default syntax associated with the height of each section is the number of pixels followed by an asterisk. The asterisk indicates that when the window is resized this row should also resize. For this application only the center section should resize so the asterisk has been removed from the top and bottom row definitions. This provides a set of defined regions that can be used to align controls within this form. Thus the next step is to add some controls to the form and create a basic user interface. In this scenario the actions should be very familiar to any developer who has worked with either Windows Forms or ASP.NET forms. Controls W PF provides an entirely different set of libraries for developing applications. However although these controls exist in a different library how .