单项选择题

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You add a custom command as a resource. The key of the command is saveCommand. 
You write the following code fragment. (Line numbers are included for reference only.) 

You need to ensure that saveCommand is executed when the user clicks the Button control.
What should you do? ()

A.
B.
C.
D.


您可能感兴趣的试卷

你可能感兴趣的试题

1.单项选择题

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.

3.单项选择题

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.

5.多项选择题

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.

6.单项选择题

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.

8.单项选择题

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 Windows Presentation Foundation (WPF) application for a travel reservation systemYou need to ensure that users can select a range of travel dates.What should you do ?()

题型:单项选择题

Where can you check the value of a dependency property? ()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application that display pricing and inventory.List box's ItemsSource property has decimal and string types. Decimals represent price and strings represents the folowing markup is defined as follows.You need to ensure that data templates are used to format the strings without changes and the decimals as ..Which markup segment should you insert at line 05 ?()

题型:单项选择题

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 ?() 

题型:单项选择题

You have definded a style in app.xamlYou want to use this style in your application in code behind.How can you achieve this? ()

题型:单项选择题

You use Microsoft .Net Framework 4 to create a Windows Form application.You created a new application, you then wrote the code below:Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCultureWhich of the following options are TRUE? ()

题型:单项选择题

You are developing WPF application for managing student information... btnSort and a DataGrid control named dgStudents on the design surface of the MainWindow.xaml properties : FirstName and LastName. You create the following code segment in the constructor of...The DataGrid control displays the list of students unsorted.You need to ensure that the list of students is sorted by last name.Which code segment should you add to the click event handler of the Button control?()

题型:单项选择题

You use Microsoft Visual Studio 2010 and Microsoft . NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You create a WPF window in the application.  You add the following code segment to the application. public class ViewModel { public CollectionView Data { get; set; } }public class BusinessObject { public string Name { get; set; } }The DataContext property of the window is set to an instance of the ViewModel class.  The Data property of the ViewModel instance is initialized with a collection of BusinessObject objects. You add a TextBox control to the Window. You need to bind the Text property of the TextBox control to the Name property of the current item of the CollectionView of the DataContext object.  You also need to ensure that when a binding error occurs, the Text property of the TextBox control is set to N/A . Which binding expression should you use?()

题型:单项选择题

You are developing a Windows Presentation Foundation (WPF) application.You configure PresentationTraceSource to track errors in a bound TextBox control in the application.You need to choose the window that the Trace information is sent toWhich Visual Studio window should you select ?()

题型:单项选择题

You are developing and XBAP application for your company intranet. During several development iterations, you manually executable, application, and deployement manifest to the test Web Server. You create an HTML file that has a manifest that you use for testing. During the next iteration, you enchance the XBAP application by making changes.When you use the hyperlink to the deployment manifest to test the deployment, you do not see the changes.You need to ensure that the changes you make are visible when you test the deployment from your machine.What should you do ?()

题型:单项选择题