You are developing a Windows Presentation Foundation (WPF) application. Users can enter formatted percentages into text boxes. The markup is as follows.
Percentage is a decimal property.
You need to store the percentages as their decimal values, not their display values.
Which code segment should you use?
A. public object Convert (object value, Type targetType, object parameter, CultureInfo culture) { return ((decimal)value).ToString("P"); }You are developing a Windows Presentation Foundation (WPF) application.
An event triggers a workflow such that a parent control executes the event handlers before the child controls.
You need to ensure that if a parent control's event handler encounters an error, the subsequent handlers are not called.
What should you do?
A. Use handlers for a tunneling routed event and mark the event as handled in the case of a problem.You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains a formnamed frmMain that contains a button named btnSave. You create a ProgressBar control named saveProgress. Initially, saveProgress is not displayed on frmMain. When a user clicks btnSave, you have the following requirement: saveProgress is fully visible after l second

You need to declare the corresponding storyboard.
You write the following code fragment. (Line numbers are included for reference only.)
01
Which code fragment should you insert at line 02 to complete the declaration?

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.You are developing a Windows Presentation Foundation (WPF) application page. The page uses extensive graphics controls and animation that require absolute positioning. You need to select a control to use as a container.
Which control should you select?
A. CanvasYou use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You use the ClickOnce deployment methodology to distribute the application.
You need to store application-specific data along with read/write permissions without requiring elevated permissions for the application.
Where should you store the application data?
A. In isolated storageYou are developing a Windows Presentation Foundation (WPF) application that will be deployed by using ClickOnce.
You have a file named CONTOSOEULA.docx that is part of the project.
CONTOSOEULA.docx must be deployed during the setup of the application.
You discover that CONTOSOEULA.docx does not appear in the Application Files settings. You need to ensure that CONTOSOEULA.docx is included in the Application Files.
Which Build Action should you use? (To answer, select the appropriate Build Action in the answer area.)
Hot Area:

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You suspect that the data returned from the database is incorrect.
You need to capture interactions to the database by using IntelliTrace.
Which event type should you capture?
A. ServiceModelYou 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?
You use Microsoft .NET Framework 4 to create a Windows Forms application. You write the following code segment. (Line numbers are included for reference only.)
01 sealed class FormSettings : ApplicationSettingsBase 02 {
04 public String Description
05 {
06 get {return (String)this["Description"]; }
07 set {this["Description"] = value;}
08 }
09 }
You need to ensure that the first time each user opens the application, a text field displays the following message: "Please enter your setting."
Which code segment should you insert at line 03?
A. [UserScopedSettingO ] [DefaultSettingValue("Please enter your setting.")]Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-511 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.