Microsoft
70-511 · Question #19
You use Microsoft .NET Framework 4 to create a Windows Forms application. You plan to use a Windows Presentation Foundation (WPF) control of the UserControl1 type hosted in an ElementHost control…
The correct answer is A. elementHost1.PropertyMap.Remove ("BackColor"). See the full explanation below for the reasoning.
Question
You use Microsoft .NET Framework 4 to create a Windows Forms application. You plan to use a Windows Presentation Foundation (WPF) control of the UserControl1 type hosted in an ElementHost control named elementHost1. You write the following code segment. (Line numbers are included for reference only.) You need to ensure that the application changes the background color of the hosted control when the background color of the form changes. Which code segment should you insert at line O5?
Exhibit
Options
- AelementHost1.PropertyMap.Remove ("BackColor");
- BelementHost1. PropertyMap.Remove ("Background");
- CelementHost1.PropertyMap.Add("BackColor", new PropertyTranslator
- DelementHost1.PropertyMap.Add("Background", new PropertyTranslator
How the community answered
(40 responses)- A80% (32)
- B10% (4)
- C8% (3)
- D3% (1)
Community Discussion
No community discussion yet for this question.
