Microsoft
70-511 · Question #14
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. < StackPanel…
The correct answer is D. private void StackPanel_PreviewTextInput(. See the full explanation below for the reasoning.
Question
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. You write the following code fragment. < StackPanel TextBox.PreviewTextInput="StackPanel_PreviewTextInput" > < TextBox Name="TxtBoxA"/> < TextBox Naroe="TxtBoxB"/> < TextBox Name="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?
Options
- Aprivate void StackPanel_PreviewTextInput(
- Bprivate void StackPanel_PreviewTextInput(
- Cprivate void StackPanel PreviewTextlnput(
- Dprivate void StackPanel_PreviewTextInput(
How the community answered
(37 responses)- A5% (2)
- B3% (1)
- C11% (4)
- D81% (30)
Community Discussion
No community discussion yet for this question.