Download Free Microsoft 70-511 PDF and VCE Updated Today 241-250

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

QUESTION 241
You are developing a Windows Presentation Foundation (WPF) application. The MainWindow.xaml file contains a TreeView control with a DataTemplate that displays three levels in the following hierarchical order:

1. Household
a. Parents
i. Children

You need to ensure that a Menu control is configured to display the same hierarchy.
What should you do?

A.    Set the ItemSource for the Menu control to the ResourceKey value of the TreeView’s ItemTemplate.
Set the ResourceKey for the Menu control’s ItemTemplate to the Key value for the DataTemplate.
B.    Set the ItemSource for the Menu control to the ItemSource value of the TreeView control.
Set the ResourceKey for the Menu control’s ItemTemplate to the ResourceKey value for the TreeView’s
ItemTemplate.
C.    Set the ItemSource for the Menu control to the ItemSource value of the TreeView control.
Set the ResourceKey for the Menu control’s ItemTemplate to the Key value for the DataTemplate.
D.    Set the ItemSource for the Menu control to the ResourceKey value of the TreeView’s ItemTemplate.
Set the ResourceKey for the Menu control’s ItemTemplate to the ItemSource value for the TreeView.

Answer: B

QUESTION 242
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.

wps6B4D.tmp

You need to implement the MyProject.AverageConverter class. What should you do?

A.    Inherit from the TypeConverter class.
B.    Implement the IValueConverter interface.
C.    Apply the TypeConverterAttribute attribute.
D.    Implement the IMultiValueConverter interface.

Answer: D

QUESTION 243
You are developing a Windows Presentation Foundation (WPF) application.
You use the following markup segment to add a Button control to the design surface of the MainWindow.xaml file.

wps88CC.tmp

You add the following code segment to the code-behind file for HainWindow.

wps9C9B.tmp

The application will be deployed in an environment that requires alternate key mappings.
You need to remove the CTRL+ C input gesture and replace it with the ALT+ C input gesture. What should you do?

A. 

wpsB3D4.tmp

 
B.  

wpsCB5B.tmp

C.

wpsE216.tmp

  
D.   

wpsF614.tmp

Answer: B

QUESTION 244
You are developing a Windows Presentation Foundation (WPF) application that displays financial data. The following style is applied to every Label control that displays currency. (Line numbers are included for reference only.)

wps86D.tmp

You need to ensure that the style is updated to meet the following requirements regarding currency:

– It must be right-aligned.
– It must display the number with the regional currency settings.

Which markup segment should you insert at line 06?

A.

wps1E9C.tmp

   
B.

wps302A.tmp

  
C.  

wps41A8.tmp

D.   

wps5355.tmp

Answer: A

QUESTION 245
You are developing a Windows Presentation Foundation (WPF) application that plays video clips. The markup is as follows.

wps6A11.tmp

You need to ensure that the current running time of the video is automatically updated and displayed in CurrentRunTime.
What should you do?

A.    Register for the myMediaTimeline Changed event and add the following line in the event handler.
CurrentRunTime.Text = myMediaElement.Clock.ToString()
B.    Register for the myMediaTimeline CurrentTimelnvalidated event and add the following line in the
event handler.CurrentRunTime.Text = myMediaElement.Position.ToString()
C.    Register for the myMediaTimeline Changed event and add the following line in the event handler.
CurrentRunTime.Text = myMediaElement.Position.ToString()
D.    Register for the myMediaTimeline CurrentTimelnvalidated event and add the following line in the
event handler.
CurrentRunTime.Text = myMediaElement.Clock.ToString()

Answer: B

QUESTION 246
You are developing a Windows Presentation Foundation (WPF) application.
The application configuration file is maintained in source control and must not be modified.
You need to ensure that developers can override individual settings.
Which XML segment should you use in the application configuration file?

A. 

wps883C.tmp

 
B. 

wps99DA.tmp

 
C.

wpsACFD.tmp

   
D.   

wpsCD0C.tmp

Answer: C

QUESTION 247
You are deploying a Windows Forms application.
You use the Publishing wizard within Visual Studio to configure ClickOnce options.
You need to ensure that a custom zone is created with specific permissions within the security tab of Visual Studio.
What should you do?

A.    Enable the ClickOnce security settings.
Then edit the deployment.application file.
B.    Disable the ClickOnce security settings.
Then edit the deployment.application file.
C.    Enable the ClickOnce security settings.
Choose the "This is a Full Trust Application" radio button.
Then edit the app.manifest file.
D.    Enable the ClickOnce security settings.
Choose the "This is a Partial Trust Application" radio button.
Then edit the app.manifest file.

Answer: D

QUESTION 248
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment.

wpsF94A.tmp

You need to implement the MyProject.MyConverter class.
What should you do?

A.    Implement the IValueConverter interface.
B.    Implement the IMultiValueConverter interface.
C.    Inherit from the TypeConverter class.
D.    Apply the TypeConverterAttribute attribute.

Answer: A

QUESTION 249
You are developing a Windows Presentation Foundation (WPF) application that contains a custom Button control.
The custom Button control can be set as active by setting an IsActive property to True.
You need to ensure that the IsActive property can be bound to a business object.
What should you do on the custom Button control?

A.    Implement IsActive as a Microsoft .NET property.
B.    Implement IsActive as a Dependency property.
C.    Implement INotifyPropertyChanged.
D.    Implement IQueryable.

Answer: B

QUESTION 250
You use Microsoft .NET Framework to create a Windows Presentation Foundation (WPF) application.
You create a window that contains a Button control and a MenuItem control. Both controls are labeled "Add sugar." The Command properties of the Button and MenuItem controls are set to the same RoutedCommand named AddSugarCommand.
You write the following code segment.

Private Sub CanAddSugar(sender As Object, e As CanExecuteRoutedEventArgs) …
End Sub

You need to ensure that when the CanAddSugar method sets e.CanExecute to false, the MenuItem and Button controls are disabled.
What should you do?

A.    Create an event handler for the CanExecuteChanged event of the AddSugarCommand command.
Call the CanAddSugar method from within the event handler.
B.    Inherit the AddSugarCommand from the RoutedUICommand class instead of the RoutedCommand class.
Call the CanAddSugar method from within the constructor of the AddSugarCommand command.
C.    Add a CommandBinding object to the CommandBinding property of the MenuItem control.
Set the CanExecute property of the CommandBinding object to the CanAddSugar method.
D.    Add a CommandBinding object to the CommandBindings property of the window.
Set the Command property of CommandBinding to the AddSugarCommand command.
Set the CanExecute property of the CommandBinding object to the CanAddSugar method.

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