Ensurepass

QUESTION 121

You are developing a Windows Presentation Foundation (WPF) application to display loan types by bank and students by loan type. You add the following markup segment to the MainWindow.xaml file. (Line numbers are included for reference only.)

clip_image002

clip_image004

You need to ensure that the data appears in hierarchical form in a TreeView control. What should you do?

 

A.    At line 09, set the Resource Key to Students. At line 15, set the Resource Key to LoanList

B.    At line 09, set the Resource Key to BankList. At line 15, set the Resource Key to Lender.

C.    At line 09, set the Resource Key to LoanList. At line 15, set the Resource Key to Students.

D.    At line 09, set the Resource Key to Lender. At line 15, set the Resource Key to BankList.

 

Correct Answer: A

 

 

QUESTION 122

You are developing a Windows Presentation Foundation (WPF) application.

The application has several visual controls on a main page. You need to restyle all of the Ul-related elements on the main page at run time. Which class should you use to reference all these elements in a single call?

 

A.    VisualTreeHelper

B.    LogicalTreeHelper

C.    UIElement

D.    ContentElement

 

Correct Answer: A

 

 

QUESTION 123

You are developing a Windows Presentation Foundation (WPF) application.

The application has an Image control. You need to ensure that a portion of the image displays in a circle in the control. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

 

A.    Add an Ellipse element to the control. Use Ellipse.Strokeand ImageBrush with the image as ImageSource.

B.    Add an Image.Clipelement to the control. Use LineGeometrywithin Image.Clip.

C.    Add an Ellipse element to the control. Use Ellipse.Filland ImageBrush with the image as ImageSource.

D.    Add an Image.Clipelement to the control. Use EllipseGeometrywithin Image.Clip.

 

Correct Answer: CD

 

 

QUESTION 124

You are developing a Windows Presentation Foundation (WPF) application. The window has the following markup. (Line numbers are included for reference only.)

clip_image006

You need to ensure that all ListBox controls have a border that matches the background color of the ListBox template. Which markup segment should you insert at line 15?

 

A.    clip_image008

B.    clip_image010

C.    clip_image012

D.    clip_image014

 

Correct Answer: A

 

 

 

QUESTION 125

You are developing a Windows Presentation Foundation (WPF) application.

The application uses drag-and-drop functionality. You need to ensure that code is executed in the code-behind file when the dragged item is released onto the target element. Which enumeration should you use?

 

A.    DragDropEffects.None

B.    DragAction.Cancel

C.    DragDropEffects.All

D.    DragAction.Drop

 

Correct Answer: D

 

 

QUESTION 126

You are developing a Windows Presentation Foundation (WPF) application.

This application will be deployed to 20 countries. However, it will only be localized to some of those countries’ regional dialects. The localization will be performed by using resource files. However, no culture will be specified in the project file with the UlCulture tags. You must ensure that the application defaults to English for those regions that are not localized. What should you do?

 

A.    Add the following code segment to the AssemblyInfo file.

clip_image016

B.    Add the following code segment to the Application constructor.

clip_image018

C.    Add the following code segment to the AssemblyInfo file.

clip_image020

D.    Add the following code segment to the Application constructor.

clip_image022

 

Correct Answer: A

 

 

QUESTION 127

You develop a Windows Presentation Foundation (WPF) application. The application runs on 64-bit machines only.

The application architects want to store application settings in the registry. The users do not have write access to these settings. These application settings apply to everyone using the application. You need to read the application settings successfully from the registry. Which code segment should you use?

 

A.    clip_image024

B.    clip_image026

C.    clip_image028

D.    clip_image030

 

Correct Answer: A

 

 

QUESTION 128

You are developing a Windows Presentation Foundation (WPF) application.

Two styles, Blue and Green, are used for Borderobjects. The two styles have the same values for the CornerRadiusand BrushThicknessproperties and different values for the Backgroundproperty. You need to define the CornerRadiusand BrushThicknesssettings in either the Blue or the Green style, but not both. What should you do?

 

A.    Separate Blue and Green into two files. Put the base settings in Blue and use MergedDictionaries. Ensure that the Green file is second in the list.

B.    Put Blue and Green into the same file. Put the base settings in Blue and mark Greenas BasedOnBlue.

C.    Put Blue and Green into the same file. Put the base settings in Blue and mark Blue as BasedOnGreen.

D.    Separate Blue and Green into two files. Put the base settings in Blue and use MergedDictionaries. Ensure that the Blue file is second in the list.

 

Correct Answer: B

 

 

QUESTION 129

You are creating a Windows Presentation Foundation (WPF) application. A control periodically appears to alert the user of status changes within the application. You need to specify that each time the control appears, it fades out within half a second. Which markup segment should you add to the Storyboardelement of the control?

 

A.            <DoubleAnimation Storyboard.TargetProperty=”Opacity” From=”0″ To=”.5″ />

B.            <DoubleAnimation Storyboard.TargetProperty=”Opacity” From=”1″ To=”0″ Duration=”0:0:.5″ RepeatBehavior=”Forever” />

C.            <DoubleAnimation Storyboard.TargetProperty=”Opacity” From=”1″ To=”0″ Duration”0:0:.5″ />

D.            <DoubleAnimation Storyboard.TargetProperty=”Opacity” From=”1″ To=”0″ Duration=”0:0:.5″ RepeatBehavior=”0:0:5″ />

 

Correct Answer: C

 

 

QUESTION 130

You are developing a Windows Presentation Foundation (WPF) application page.

The controls on the page must be enclosed within a single rectangular border. The border must contain an image in the header. You need to select a control to use as a container. Which control should you select?

 

A.            Border

B.            Rectangle

C.            Expander

D.            GroupBox

 

Correct Answer: D

 

Download Latest MCTS 70-511 Real Free Tests , help you to pass exam 100%.

Comments are closed.