You are developing a Windows Presentation Foundation (WPF) application. A window is defined in the following markup segment.

You need to add a Windows Forms Button control to the window programmatically.
Which code segment should you use?
A. Dim host As WindowsFormsHost = New WindowsFormsHost() Dim wfButton As System.Windows.Forms.Button = New System.Windows.Forms.Button() wfButton.Text = "Button" host.FindName("Button") grid1.Children.Add(host)You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains the following code fragment.
You need to define a style that applies the following properties to the text in the StackPanel object:

FontSize = 32

FontWeight = Bold
Which code fragment should you use?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. (Line numbers are included for reference only.)
01
02 03 Width-"60" Canvas. Leftoff Canvas.Top-"100"> 04 05
06
You need to rotate the rectangle by 45 degrees by using its upper-left corner as the axis.
Which code fragment should you insert at line 04?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP).
When the user clicks a button, the background worker executes a method named DoCalculations asynchronously. You need to implement a progress bar on the user interface (UI) that Informs the user of the progress of DoCalculations.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Modify the Value property of the progress bar in DoCalculations.You are developing a Windows Presentation Foundation (WPF) application to play audio files. You add a MediaElement control named mediaElementl and a Button control named btnPlayAudio to the design surface. The MediaElement
control Source attribute is set to an audio file. The LoadedBehavior attribute is set to Manual.
You add the following code to the main window.
Sub playCoinroand_Executed (ByVal sender As Object,
ByVal e As RoutedEventArgs)
MediaElenient 1.Play ()
End Sub
You set the command of the button to MediaCommands.Play.
You need to ensure that the application will play the audio file when the button is pressed.
What should you add to the constructor of the main window?
A. Dim piayCommand As RoutedCommand = New RoutedCommand() AddHandler playCommand.CanExecuteChanged, New EventHandler(AddressOf playComrnand_Executed) Me.CommandBindings.Add(New CoinmandBinding (playCommand))You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application contains the following code fragment.
You need to define a style that applies the following properties to the text in the StackPanel object:

FontSize = 32

FontWeight = Bold
Which code fragment should you use?
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application uses the drag-and-drop functionality.
You need to identify which enumeration member must be used to meet the following requirements:

Ensure that the data from the drag source can be copied.

Ensure that the data from the drag source can be moved.

Ensure that the target can be scrolled while you are dragging. Which enumeration member should you identify?
A. DragAction.DropThe custom Chart control is defined in a class named ChartControl in a namespace named Contoso.Views.Chart. You need to include the Chart control in a page named DetailPage.xaml.
What should you do? (Develop the solution by selecting and ordering the required code snippets. You may not need all of the code snippets.)
Select and Place:

You plan to create a Windows Presentation Foundation (WPF) user control.
You need to create a WPF user control that contains 12 areas that are identical in size.
The solution must meet the following requirements:

Ensure that if the control is resized, the relative size of the areas will remain the same.

Minimize development effort. Which control should you use?
A. StackPanelYou have a Windows Presentation Foundation (WPF) application named App1.
You plan to deploy App1 by using ClickOnce.
You need to ensure that App1 meets the following security requirements:
The assembly that contains App1 must be visible from a COM component.
Each time App1 runs, an End-User License Agreement (EULA) must appear.
App1 must be able to open files on local drives if the application is deployed from a file server.
App1 must be prevented from opening files on local drives if the application is deployed from a Web server.
Which file should you modify for each requirement? (To answer, drag the appropriate files to the correct requirements. Each file may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to
view content.)
Select and Place:

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.