单选题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

题目
单选题
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

参考答案和解析
正确答案: B
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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.


参考答案:C

第2题:

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、 FlowDocument 
  • B、 FlowDocumentReader
  • C、 FlowDocumentPageViewer
  • D、 FlowDocumentScrollViewer

正确答案:B

第3题:

正确描述创建一个一级居中标题的句法是______。A.Heading Text</HO>B.

正确描述创建一个一级居中标题的句法是______。

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>


正确答案:B

第4题:

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.

正确答案:B

第5题:

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 control
  • B、 a data template
  • C、 a control template
  • D、 a control that inherits the Canvas class

正确答案:A

第6题:

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

正确答案:B

第7题:

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、 Menu
  • B、 PopUp
  • C、 ListBox
  • D、 ContextMenu

正确答案:D

第8题:

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.


参考答案:B

第9题:

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' }

正确答案:A

第10题:

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.

正确答案:C

更多相关问题