PrepAway - Latest Free Exam Questions & Answers

Which two actions should you perform?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You create a dialog window composed of a TextBox control and a Button control by using the following XAML code fragment.

<TextBox Width="200" AcceptsReturn="True" />
<Button Width="80" Click="Button_Click">OK</Button>

You need to ensure that each time the user presses the ENTER key, the click event of the OK button is raised.
Which two actions should you perform? (Each correct answer presents part of the solution.)

PrepAway - Latest Free Exam Questions & Answers

A.
Add the IsDefault="True" attribute to the Button element.

B.
Add the IsTabStop="True" attribute to the Button element.

C.
Add the IsHitTestVisible="True" attribute to the Button element.

D.
Add the Focusable="False" attribute to the TextBox element.

E.
Add the AcceptsTab="True" attribute to the TextBox element.

F.
Set the AcceptsReturn attribute value of the TextBox element to False.


Leave a Reply