单项选择题 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You declare a class named PictureContainer that has a property named Photo. The Photo property is of the byte[] type and contains an image in the JPEG format. You assign a collection of the PictureContainer elements to the current DataContext. You need to create a ListBox control that displays the images. Which code fragment should you use?()
单项选择题 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains an ObservableCollection object named Pictures that contains several Picture objects. Each Picture object contains the Name and PictureFilePath properties. You add a ListBox control to the application. You need to ensure that the pictures are displayed in the ListBox control. Which code fragment should you use?()
单项选择题 You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains three text boxes named txtAddress, txtCity, and txtState. You need to ensure that the postal code is automatically set based on the information typed by users in the text boxes. You also need to ensure that the complete address is displayed in a TextBlock control. Which code fragment should you use?()