Microsoft
70-511 · Question #104
70-511 Question #104: Real Exam Question with Answer & Explanation
Sign in or unlock 70-511 to reveal the answer and full explanation for question #104. The question stem and answer options stay visible for context.
Question
You are developing a Windows Presentation Foundation (WPF) application. A UserControl named usercontroll contains the following controls. <StackPanei> <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
- Avar label = userControll.FindName ("label1") as Label;
- BuserControl1.Content = "New Content!!!";
- Cvar label = userControl1.FindResource("label1") as Label;
- DDependencyProperty dp =
Unlock 70-511 to see the answer
You've previewed enough free 70-511 questions. Unlock 70-511 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.