单选题You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes. What should you do ?()ASet the Value property of the style setter to point to a static resourceBSet the BasedOn property of the heading style to point to a static resource for the body text styleCSet the Key property of the heading style to start with the name of the body text styleDSet the TargetType property of the heading style to TextBlock

单选题
You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes. What should you do ?()
A

 Set the Value property of the style setter to point to a static resource

B

 Set the BasedOn property of the heading style to point to a static resource for the body text style

C

 Set the Key property of the heading style to start with the name of the body text style

D

 Set the TargetType property of the heading style to TextBlock


参考解析

解析: 暂无解析

相关考题:

正确描述创建一个一级居中标题的句法是______。A.Heading TextB. 正确描述创建一个一级居中标题的句法是______。A.<HO ALIGN=CENTER>Heading Text</HO>B.<H1 ALIGN=CENTER>Heading Text</H1>C.<H ALIGN=CENTER>Heading Text</H>D.<HT ALIGN=CENTER>Heading Text</HT>

You are developing a Windows Presentation Foundation (WPF) application. All of the application styles are in the file name Themes.dllYou have the followiing markup segment.BlueBackground is defined in a XAML file named BlueTheme.xaml. The XAML markup is compiled into the Themes.dll file.You need to ensure that the XAML file is referenced so that the application can apply the settings in the BlueBackground style.()A.B.C.D.

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 ?()A.B.C.D.

You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes. What should you do ?()A、Set the Value property of the style setter to point to a static resourceB、Set the BasedOn property of the heading style to point to a static resource for the body text styleC、Set the Key property of the heading style to start with the name of the body text styleD、Set the TargetType property of the heading style to TextBlock

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to ensure that users can view content in a book-reading format that displays two pages at a time. Which control should you use?()A、FlowDocumentB、FlowDocumentReaderC、FlowDocumentPageViewerD、FlowDocumentScrollViewer

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to ensure that the application meets the following requirements: Displays a menu that is specific to the control selected by the user. Displays the menu next to the control. Which control should you use? ()A、MenuB、PopUpC、ListBoxD、ContextMenu

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format. You need to ensure that you can reuse the controls. What should you create?()A、a user controlB、a data templateC、a control templateD、a control that inherits the Canvas class

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?()A、{ Binding Path=Data/Name, FallbackValue='N/A' }B、{ Binding Path=Data.Name, FallbackValue='N/A' }C、{ Binding Path=Data/Name, TargetNullValue='N/A' }D、{ Binding Path=Data.Name, TargetNullValue='N/A' }

You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a new control for the application. You need to ensure that the control extends the DataGridView control by allowing the cells to contain multicolored text. What should you do?()A、Override the OnPaint method.B、Write a code segment to handle the CellPainting event.C、Write a code segment to handle the CellParsing event.D、Write a code segment to handle the RowPostPaint event.

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application. What should you do?()A、Use IntelliTrace.B、Use UISpy.exe to extract the user interface (UI) information. Then, use MSTest.exe.C、Use classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.D、Use the Action Recording methodology to record the user interface (UI) actions.Then, use MSTest.exe.

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? ()A、FrameworkElementB、UIElementC、UserControlD、Button

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 to Which Visual Studio window should you select ?()A、AutosB、ImmediateC、LocalsD、Output

You use Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application. You plan to create a custom control that contains four text input fields. Each of the text input fields within the control will contain a label. You need to ensure that the text input fields within the control can be validated by using a regular expression validator. Which class should you inherit from?()A、TextBoxB、TextElementC、UIElementD、UserControl

You are developing a Windows Presentation Foundation (WPF) application. You are implementing a test strategy for the application. You need to ensure that the test class can repeat user input. From which base class should the test class inherit?()A、AutomationElementIdentifierB、AutomationPeerC、KeyboardD、UICues

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a composite user control that includes a TextBox control named txtInput. The user control will be hosted in a window and will have handlers for the text-changed event of txtInput. You need to ensure that the application meets the following requirements: AddHandler(TextBox.TextChangedEvent, new RoutedEventHandler(Audit_TextChanged), true); Which of the following statments are TRUE ?()A、A text-changed event handler, named Audit_TextChanged, was Created for the txtInput control.B、Audit_TextChanged will stop running because the event is marked as handled by certain event handlers.C、Even through the event is marked handled by certain event handlers, Audit_TextChanged will still run.D、Audit_TextChanged will continue to run until the event is marked as handled.

单选题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 to Which Visual Studio window should you select ?()AAutosBImmediateCLocalsDOutput

单选题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?()A{ Binding Path=Data/Name, FallbackValue='N/A' }B{ Binding Path=Data.Name, FallbackValue='N/A' }C{ Binding Path=Data/Name, TargetNullValue='N/A' }D{ Binding Path=Data.Name, TargetNullValue='N/A' }

单选题You are developing a Windows Presentation Foundation (WPF) application. You are implementing a test strategy for the application. You need to ensure that the test class can repeat user input. From which base class should the test class inherit?()AAutomationElementIdentifierBAutomationPeerCKeyboardDUICues

单选题You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a new control for the application. You need to ensure that the control extends the DataGridView control by allowing the cells to contain multicolored text. What should you do?()AOverride the OnPaint method.BWrite a code segment to handle the CellPainting event.CWrite a code segment to handle the CellParsing event.DWrite a code segment to handle the RowPostPaint event.

单选题You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application includes a function that is triggered by filling out a form and by clicking a button. Currently, the application is tested manually. You need to create an automated and iterative process to test the application. What should you do?()AUse IntelliTrace.BUse UISpy.exe to extract the user interface (UI) information. Then, use MSTest.exe.CUse classes in the System.Windows.Automation and System.Windows.Automation.Text namespaces.DUse the Action Recording methodology to record the user interface (UI) actions.Then, use MSTest.exe.

单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application. You plan to create a custom control that contains four text input fields. Each of the text input fields within the control will contain a label. You need to ensure that the text input fields within the control can be validated by using a regular expression validator. Which class should you inherit from?()ATextBoxBTextElementCUIElementDUserControl

单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application has multiple data entry windows. Each window contains controls that allow the user to type different addresses for shipping and mailing. All addresses have the same format. You need to ensure that you can reuse the controls. What should you create?()Aa user controlBa data templateCa control templateDa control that inherits the Canvas class

单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to ensure that the application meets the following requirements: Displays a menu that is specific to the control selected by the user. Displays the menu next to the control. Which control should you use? ()AMenuBPopUpCListBoxDContextMenu

单选题You are developing a Windows Presentation Foundation (WPF) application. The application contains stylized body text and heading text. The heading text is a slight variation of the body text. You need to ensure that if the body text changes, the heading text automatically inherits those changes. What should you do ?()ASet the Value property of the style setter to point to a static resourceBSet the BasedOn property of the heading style to point to a static resource for the body text styleCSet the Key property of the heading style to start with the name of the body text styleDSet the TargetType property of the heading style to TextBlock

单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You need to ensure that users can view content in a book-reading format that displays two pages at a time. Which control should you use?()AFlowDocumentBFlowDocumentReaderCFlowDocumentPageViewerDFlowDocumentScrollViewer

单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the drag-and-drop functionality. You need to ensure that the drag-and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form. Which enumeration member should you use?()ADragAction.CancelBDragAction.DropCDragDropEffects.NoneDDragDropEffects.All

单选题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? ()AFrameworkElementBUIElementCUserControlDButton

单选题You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application that displays an image. You need to ensure that users can stretch and scale the image. Which control should you use?()AFrameBSliderCViewboxDScrollViewer