PrepAway - Latest Free Exam Questions & Answers

Which code snippets should you include in Target 1 and Target 2 to complete the code?

DRAG DROP
You are developing a Windows Store app.
The app has the following accessibility requirements:
The automation name of each text box must be the same as the text box caption.
Each Label element must be associated with its corresponding text box.
You need to create an interface that meets the requirements.

You have the following code:

Which code snippets should you include in Target 1 and Target 2 to complete the code? (To
answer, drag the appropriatecode snippets to the correct targets in the answer area. Each
code snippet may be used once, more than once, or not at all. You mayneed to drag the split
bar between panes or scroll to view content.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

One Comment on “Which code snippets should you include in Target 1 and Target 2 to complete the code?

  1. chooch says:

    https://msdn.microsoft.com/library/windows/apps/br209081

    AutomationProperties.HelpText: Gets or sets the help text for the element.
    AutomationProperties.ItemType: Gets or sets a description of the type of the specified element.
    AutomationProperties.LabeledBy: Gets or sets the element that contains the text label for the element.
    AutomationProperties.Name: Gets or sets the UI Automation name of the element.

    “The automation name of each text box must be the same as the text box caption.”, this refers to the text that a screen reader will read to the user when the on focus event fires. so target1= “Name”

    “Each Label element must be associated with its corresponding text box”
    this part is easy, there’s a binding reference in the question {binding ElementName=Comment}, this refers to the x:name attribute of the textblock, so target2 is “Labeledby”




    0



    0

Leave a Reply