单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You create a game where a ball drops from the top to the bottom of a window.
You plan to create a single animation for the game.
You need to ensure that the animation shows the ball bounce.
What should you do?()

A. Use the KeySpline property of a SplineDoubleKeyFrame object.
B. Use the EasingFunction property of an EasingDoubleKeyFrame object.
C. Use the DecelerationRatio and AutoReverse properties of a StoryBoard object.
D. Use the DecelerationRatio and AccelerationRatio properties of a StoryBoard object.


您可能感兴趣的试卷

你可能感兴趣的试题

2.单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You create a window named ManageOrders that contains a Button control named showOtherSide.  
You add an animation named FlipSides as a resource of ManageOrders. 
You need to ensure that the following requirements are met:
FlipSides runs each time a user clicks showOtherSide. 
FlipSides runs only when a user clicks showOtherSide. 
What should you do?()

A. Add a property trigger to the Triggers collection of ManageOrders.   Configure the property trigger to be based on the IsPressed property of showOtherSide. 
B. Add an event trigger to the Triggers collection of ManageOrders.   Configure the event trigger to be based on the Click event of showOtherSide.
C. Call the BeginAnimation method of showOtherSide.   Pass FlipSides as a parameter of the BeginAnimation method. 
D. Call the BeginAnimation method of ManageOrders.   Pass FlipSides as a parameter of the BeginAnimation method.

4.多项选择题

You use Microsoft .NET Framework 4 to create a custom Windows Presentation Foundation (WPF) application. 
Your environment includes several WPF applications. The applications use the same logo and style configuration as part of a corporate standard.  
You need to ensure that the existing applications can be updated to use the same logo and style settings without recompiling. 
Which two actions should you perform?()

A. Mark the resource as an embedded resource in each application. 
B. Create a resource in an XAML file that contains the logo and style configurations.
C. Create a resource in a custom control that contains the logo and style configurations.
D. Add the resource as a ResourceDictionary in the MergedDictionaries collection of each application.
E. Use ResourceManager to read the content of the resource. Manually assign the style configurations included in the resource file to the appropriate control in each application.

5.单项选择题

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation
Framework (WPF) application. 
You have a page named myPage that contains the following code fragment. 

You need to ensure that other pages in your application can use CustomerNameBrush.  
What should you do? ()

A. Move CustomerNameBrush to the App.xaml file. 
B. Inherit from myPage in all additional pages that use CustomerNameBrush.
C. Add a reference to myPage to all additional pages that use CustomerNameBrush.
D. Bind controls that need CustomerNameBrush to myPage.Resources.CustomerNameBrush.

7.单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You write the following code fragment. 
 
You need to ensure that the style is applied to all labels within the application. 
What should you do?()

A. Add the style to the <Grid.Resources> section of the main window. 
B. Add the style to the <Window.Resources> section of the main window.
C. Add the style to the <Application.Resources> section of the App.xaml file. 
D. Add the style to the <Application.Properties> section of the App.xaml file.
E. Add the style to the <ResourceDictionary> section of the ResourceDictionary.xaml file.

最新试题

You are developing a user control for Windows Presentation Foundation (WPF) application.The user control contains a button. Both the user control and the hosting control must receive the button click event.You need to ensure that the user control responsd to the button click event before hosting control responds to the event.What should you do ?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application.You need to display HTML content from a Web Page on the WPF form. What should you do?()

题型:单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code segment. (Line numbers are included for reference only.) the TextBox control is data-bound to an instance of the Contact class.  You need to ensure that the Contact class contains a business rule to ensure that the ContactName property is not empty or NULL.You also need to ensure that the TextBox control validates the input data. Which two actions should you perform?()

题型:多项选择题

When the application si run, it appears as followsYou need to ensure that the TextBlock control with the contents "Product shipped" is horizontal centered to the grid?Which mark up segment should you add to the TextBlock control?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls.From which base class should you inherit? ()

题型:单项选择题

You use Microsoft .NET Framework 4 to create an application. The application performs resource-intensive calculations that consist of multiple layers of nested looping.The application will be deployed to servers that contain varying hardware configurations. You need to ensure that the application utilizes CPU resources on the server in the most efficient manner. You want to achieve this goal by using the minimum amount of code. What should you do?()

题型:单项选择题

The UI is not being updated when the Data property is set.You need to ensure that the DisplayData class correctly updates the UI when the Data ..What should you do ?() 

题型:单项选择题

Which of the following examples of the pack URI syntax accesses a file named myImage.jpg in a folder named MyFolder in another assembly named myAssembly? ()

题型:单项选择题

You are developing a Windows Forms application that contains a DataGridView control. The DataGridView capture the customer's name, address, and phone number.You have been asked to provide data validation in a DataGridView to prevent users from leaving the..You need to ensure that users cannot tab out of the name field without entering dataWhat should you do ?()

题型:单项选择题

You create a Windows client application by using Windows Presentation Foundation (WPF). The application contains the following code fragment.You need to assign lbDetails to use the detail data template when btnDetails is clicked. Which code segment should you write for the click event handler for btnDetails?()

题型:单项选择题