Which command should you use?
Your team is creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET Framework 3.5.
You plan to deploy the application by using the ClickOnce technology. You need to ensure that the application can be used even when network access is unavailable.
Which command should you use?
Which XAML code fragment should you use?
You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application includes a window that displays a rectangle.
You need to transform the rectangle by rotating it 45 degrees.
Which XAML code fragment should you use?
Which code fragment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You create a window for the application. You add an image to the window.
You need to ensure that the following requirements are met:
* The image is scaled to completely fit the client area of the window.
* The image aspect ratio is preserved.
* The entire image is displayed within the window.
Which code fragment should you use?
Which XAML code fragment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You add a window that displays three-dimensional graphics.
You need to create a camera that meets the following requirements:
* It displays a graphic by excluding the Z-dimension.
* It focuses directly on the front portion of the graphic.
Which XAML code fragment should you use?
Which code segment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application will display documents by using an instance of the FlowDocumentPageViewer class. The instance is named fdpv.
Users can highlight and annotate the content of the documents. You need to ensure that annotations made to a document are saved and rendered when the document is displayed again.
Which code segment should you use?
Which code segment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
Your project contains a folder named Data. You add a .MP3 file named song.mp3 in the Data folder.
You set the Build Action property of the application to Resource. You need to access the .MP3 file from one of the application classes.
Which code segment should you use?
Which code segment should you insert at line 09?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You write the following code segment
(Line numbers are included for reference only).
01 object content;
02 string fileName = "theFile";
03 using (FileStream xamlFile = new FileStream(fileName + ".xaml", FileMode.Open, FileAccess.Read))
04 {
05 content = (object)XamlReader.Load(xamlFile);
06 }
07 using (Package container = Package.Open(fileName + ".xps", FileMode.Create))
08 {
09
10 }
You need to ensure that the following requirements are met:
* The application converts an existing flow document into an XPS document.
* The XPS document is generated by using the flow document format.
* The XPS document has the minimum possible size.
Which code segment should you insert at line 09?
Which type of application should you use?
You plan to create an application by using Microsoft .NET Framework 3.5 and Microsoft Visual Studio 2008.
You need to ensure that the application meets the following requirements:
* The entire application user interface is designed by using XAML.
* The application runs by default under the FullTrust permission set on the client computer.
Which type of application should you use?
Which configuration setting should you use?
You have created a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application, named EnterpriseApplication.exe, runs over the network.
You add the WindowSize parameter and the WindowPosition parameter to the Settings.settings file by using the designer at the User Scope Level.
The dimensions and position of the window are read from the user configuration file.
The application must retain the original window size and position for users executing the application.
You need to ensure that the following requirements are met:
* The window dimensions for each user are saved in the user configuration file.
* User settings persist when a user exits the application.
Which configuration setting should you use?
Which XAML code fragment should you use?
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You plan to add a Button control and a StatusBar control to a window.
You need to ensure that the two controls meet the following requirements:
* The StatusBar control sticks to the lower edge of the window.
* The Button control has the minimum required size to display its content.
Which XAML code fragment should you use?