Passed Microsoft 70-511 Exam with Pass4sure and Lead2pass PDF & VCE 81-90

Vendor: Microsoft
Exam Code: 70-511
Exam Name: TS: Windows Applications Development with Microsoft .NET Framework 4
Version: 14.91

QUESTION 81
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.)

wps7E63.tmp

wps9D79.tmp

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 Loan List
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.

Answer: A

QUESTION 82
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

Answer: C

QUESTION 83
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.Stroke and ImageBrush with the image as ImageSource.
B.    Add an Image.Clip element to the control.
Use LineGeometry within Image.Clip.
C.    Add an Ellipse element to the control.
Use Ellipse.Fill and ImageBrush with the image as ImageSource.
D.    Add an Image.Clip element to the control.
Use EllipseGeometry within Image.Clip.

Answer: CD

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

wpsCAA1.tmp

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.    <Border Background=" \TemplateBindding ListBox.Background} "> <ItemsPresenter />
</Border>
B.    <Border Background="\Binding ListBox.Background}">
<ItemsPresenter />
</Border>
C.    <Border Background="{TemplateBinding ListBox.Background} "> <ContentPresenter />
</Border>
D.    <Border Background="{Binding ListBox.Background}">
<ContentPresenter />
</Border>

Answer: A
Explanation:
See the msdn link with this example:
http://msdn.microsoft.com/it- it/library/system.windows.controls.itemscontrol.itemspanel.aspx

QUESTION 85
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.AII
D.    DragAction.Drop

Answer: D

QUESTION 86
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.
[assembly: NeutralResourcesLanguage("en-US",
UltimateResourceFallfcaclcLocation.Satellite) ]
B.    Add the following code segment to the Application constructor.
Thread.CurrentThread.CurrentUICulture=
new CultureInfo("en-US");
C.    Add the following code segment to the AssemblyInfo file.
[assembly: NeutralResourcesLanguage("en-OS", DltimateResourceFallbackLocation.MainAssembly) ]
D.    Add the following code segment to the Application constructor.
Thread.CurrentThread.CurrentCulture =
new CultureInfo("en-US");

Answer: A
Explanation:
Apply this attribute to your main assembly, passing it the name of the default culture whose resources are embedded in the main assembly. Optionally, you can pass a member of the
UltimateResourceFallbackLocation enumeration to indicate the location from which to retrieve fallback resources. Using this attribute is strongly recommended.
http://msdn.microsoft.com/en-us/library/system.resources.ultimateresourcefallbacklocation(v=vs.100).aspx
and
http://msdn.microsoft.com/en-us/library/system.resources.neutralresourceslanguageattribute(v=vs.100).aspx

QUESTION 87
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.    RegistryKey
OpenBaseKey{RegistryHive.LocalMachine, RegistryView.Registry64)
OpenSubKey(@"Sofware\MyProgram")
GetValue("ConnectionString") ;
B.    RegistryKey
OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64)
CreateSubKey(@"Software\MyProgram")
GetValue("ConnectionString");
C.    RegiatryKey
OpenBaseKey(RegistryHive.LocalMachine. RegistryView.Registry64)
CreateSubKey(@"Software\MyProgram")
GetValue("ConnectionString") ;
D.    RegistryKey
OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry64)
OpenSubKey(@"Software\MyProgram")
GetValue("ConnectionString");

Answer: A

QUESTION 88
You are developing a Windows Presentation Foundation (WPF) application. Two styles, Blue and Green, are used for Border objects. The two styles have the same values for the CornerRadius and BrushThickness properties and different values for the Background property.
You need to define the CornerRadius and BrushThickness settings 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 Green as BasedOn Blue.
C.    Put Blue and Green into the same file. Put the base settings in Blue and mark Blue as BasedOn Green.
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.

Answer: B

QUESTION 89
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 Storyboard element of the control?

A.    <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To=".5" />
B.    <DoubleAn^mation Storyboard.rargetProperty="Opacity" From="l" To="0" Duration="0:0:.5"
RepeatBehavior="Forever" />
C.    <DoubleAnimation Storyboard.TargetProperty="Opacity" From"l" To="0" Duration"0:0:.5" />
D.    <DoubleAnimation Storyboard. TargetProperty="Opacity" From="1" To="0" Duration="0:0:.5"
RepeatBehavior="0:0:5" />

Answer: C

QUESTION 90
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

Answer: D

If you want to pass Microsoft 70-511 exam successfully, donot missing to read latest lead2pass Microsoft 70-511 dumps.
If you can master all lead2pass questions you will able to pass 100% guaranteed.

http://www.lead2pass.com/70-511.html