Microsoft
70-511 · Question #237
You are developing a Windows Presentation Foundation (WPF) application. A UserControl named usercontroll contains the following controls. <StackPanel> <Label Name="label1" Content="Hello Exam!!!" />…
The correct answer is D. Dim label =. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. A UserControl named usercontroll contains the following controls. <StackPanel> <Label Name="label1" Content="Hello Exam!!!" /> </StackPanel> You need to ensure that the content of the label displays "New Content!!!" programmatically from the code-behind of the application window that contains the UserControl. Which code segment should you use?
Options
- ADim label =
- BuserControll.Content = "New Content!!!"
- CDim dp As DependencyProperty =
- DDim label =
How the community answered
(19 responses)- A16% (3)
- B5% (1)
- C5% (1)
- D74% (14)
Community Discussion
No community discussion yet for this question.