2016 June Microsoft Official New Released 70-511 Q&As in GreatExam.com!
100% Free Download! 100% Pass Guaranteed!
How to 100% pass 70-511 exam? GreatExam provides the guaranteed 70-511 exam preparation material to boost up your confidence in 70-511 exam. Successful candidates have provided their reviews about our 70-511 dumps. Now GreatExam supplying the new version of 70-511 VCE and PDF dumps. We ensure our 70-511 exam questions are the most complete and authoritative compared with others’, which will ensure your 70-511 exam pass.
Following questions and answers are all new published by Microsoft Official Exam Center: (The full version is in the end of the article!!!)
QUESTION 121
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.
You add the following code segment to the code-behind file for MainWindow.
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. Option A
B. Option B
C. Option C
D. Option D
Answer: B
QUESTION 122
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.)
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. Option A
B. Option B
C. Option C
D. Option D
Answer: A
VB
QUESTION 123
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. Option A
B. Option B
C. Option C
D. Option D
Answer: D
QUESTION 124
You are developing a user control for a Windows Presentation Foundation (WPF) application. The user control contains a button.
Both the user control and the hosting control must receive the button click event.
You need to ensure that the user control responds to the button click event before the hosting control responds to the event.
What should you do?
A. Use a bubbling routed event.
In the button click event handler, set the Handled property to True.
B. Use a bubbling routed event.
In the button click event handler, set the Handled property to False.
C. Use a standard Microsoft .NET event.
Set the Handled property to True.
D. Use a tunneling routed event.
Set the Handled property to False.
Answer: C
QUESTION 125
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
You write the following code fragment.
<StackPanel TextBox.PceviewTextInput=”StackPanel_PreviewTextInput”> <TextBox Name=”TxtBoxA”/>
<TextBox Name=”TxtBoxB”/>
<TextBox Naroe=”TxtBoxC”/>
</StackPanel>
You create an event handler named StackPanel_PreviewTextInput.
You also have a collection of strings named Keywords.
You need to ensure that TxtBoxA and TxtBoxB do not contain any of the strings in the Keywords collections.
Which code segment should you use?
A. Private Sub StackPanel_PreviewTextInput(sender As Ctoject, e As
TextCompositionEventArgs)
Dim feSource As FrameworkElement = TryCast(sender, FrameworkElement)
If feSource.Name – “TxtBoxA” OrElse feSource.Name – “TxtBoxB”
Then For Each keyword As String In Keywords
If e.Text.Contains(keyword) Then
Handled = False
Return
End If
Next
Handled = True
End If
End Sub
B. Private Sub StackPanel_PreviewTextInput(sender As Object e As
TextCompositionEventArgs)
Dim feSource As FrameworkElement = TryCast
(e.Source, FrameworkElement)
If feSource.Name = “TxtBoxA”
OrElse feSource.Name = “TxtBoxB”
Then For Each keyword As String In Keywords
If e.Text.Contains(keyword) Then e.Handled False Return End If
Next
Handled = True
End If
End Sub
C. Private Sub StackPanel_PreviewTextInput(sender As Object, e As
TextCompositionEventArgs)
Dim feSource As FrameworkElement = TryCast(sender, FraroeworkElement)
If feSource.Name = “TxtBoxA”
OrElse feSource.Name = “TxtBoxB”
Then For Each keyword As String In Keywords
If e.Text.Contains(keyword) Then e.Handled = True Return End If
Next
Handled = False
End If
End Sub
D. Private Sub StackPanel_PreviewTextInput(sender As Ctoject, e As
TextCompositionEventArgs)
Dim feSource As FrameworkElement = TryCast
(e.Source, FrameworkElement)
If feSource.Name = “TxtBoxA”
OrElse feSource.Name = “TxtBoxB”
Then For Each keyword As String In Keywords
If e.Text.Contains(keyword) Then e.Handled = True
Return
End If
Next
Handled = False
End If
End Sub
Answer: D
QUESTION 126
You are developing a Windows Presentation Foundation (WPF) application.
You have the following style defined in the app.xaml file.
<Style x:Key=”btnItalic” x:Name=”styIeItalic”
TargetType=”{ x:Type Button}”>
Setter Property=”FontStyle” Value=”Itallc”/> </Style>
You need to apply this style to a button named button1 in the application at run time.
Which code segment should you use?
A. button1.Style =
TryCast(Me.FindName(“styleItalic”),Style)
B. button1.Style =
TryCast(Me.FindName(“btnItalic”), Style)
C. button1.Style =
TryCast(Me.FindResource(“btnItalic”), Style)
D. button1.Style =
TryCast(Me.FindResource(“styleItalic”), Style)
Answer: C
QUESTION 127
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application displays a list of books.
You write the following code fragment. (Line numbers are included for reference only.)
You need to ensure that book titles that are out of stock appear in red.
Which code fragment should you insert at line 12?
A. <Style.Triggers>
<Trigger Binding. XmlNainespaceManager=”
< Binding XPath=GStock>” Value=”out”>
<Setter Property=”Foreground” Value=”Red” />
</Trigger>
</Style.Tr iggers>
B. <Style.Triggers>
<DataTrigger Binding=”{Binding XPath=@Stock}”
Value=”out”>
<Setter Property=”Foreground” Value=”Red” />
</DataTrigger>
</Style.Tr iggers>
C. <Style.Triggers>
<Trigger Binding. XmlNainespaceManager=”{Binding XPath=Book@Stock> ”
Value=”out”>
<Setter Property=”Foreground” Value=”Red” />
</Trigger>
</Style.Tr iggers>
D. <Style.Triggers>
<DataTrigger Binding-“Binding XPath=Book@Stock}”
Value=”out”>
<Setter Property=”Foreground” Value=”Red” />
</DataTrigger>
</Style.Triggers>
Answer: B
QUESTION 128
You use Microsoft .NET Framework 4 to create a Windows Presentation Framework (WPF) application.
You plan to create a custom control that contains four text input fields.
Each of the text input fields within the control will contain a label.
You need to ensure that the text input fields within the control can be validated by using a regular expression Validator.
Which class should you inherit from?
A. TextBox
B. TextElement
C. UIElement
D. UserControl
Answer: D
QUESTION 129
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 <Canvas>
02 <Rectangle Stroke-“Red” StrokeThickness-“5” Height-“60”
03 Width-“60″ Canvas. Left100” Canvas.Top-“100”>
04
05 </Rectangle>
06 </Canvas>
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?
A. <Rectangle.RenderTransf orin>
<RotateTransform Angle=”45″ CenterX=”0″ CenterY=”0″ />
</Rectangle.RenderTransform>
B. <Rectangle.RenderTransform>
<RotateTransform Angle=”45″ CenterX=”100″ CenterY=”100″ />
</Reccangle.RenderTransform>
C. <Rectangle.LayoutTransform>
<RotateTransform Angle=”45″ CenterX-“0M CenterY=”0″/>
</Rectangle.LayoutTransform>
D. <Rectangle.LayoutTransform>
<RotateTransforro Angle=”45″ CenterX=”100″ CenterY=”100’7>
</Rectangle.LayoutTransform>
Answer: A
QUESTION 130
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.)
You need to ensure that both Button controls display the “Save” text.
Which code fragment should you insert at line 06?
A. <TextBlock Text=”{Binding}” />
B. <TextBlock Text=”{TemplateBinding Content}” />
C. <ContentPresentet Content “Binding}” />
D. <ContentPresenter />
Answer: D
The Microsoft 70-511 questions and answers from GreatExam are the most reliable guide for Microsoft exam. We offer the latest 70-511 PDF and VCE dumps with new version VCE player for free download, and the newest 70-511 practice test ensures your exam 100% pass. A large number of successful candidates have shown a lot of faith in our 70-511 exam dumps. If you want pass the Microsoft 70-511 exam, please choose GreatExam.
2016 Microsoft 70-511 exam dumps (All 300 Q&As) from GreatExam:
http://www.greatexam.com/70-511-exam-questions.html [100% Exam Pass Guaranteed!!!]