Microsoft
70-511 · Question #230
You are developing a Windows Presentation Foundation (WPF) application. The application consists of: - A window that contains controls organized into groups. - Groups that are ordered vertically and…
The correct answer is D. Use a StackPanel control to organize the groups with its Orientation property set to Vertical. See the full explanation below for the reasoning.
Question
You are developing a Windows Presentation Foundation (WPF) application. The application consists of:
- A window that contains controls organized into groups.
- Groups that are ordered vertically and that have individual headings.
- Controls within the groups that are ordered horizontally.
- Groups and controls that will be added dynamically at run time.
You need to ensure that the application meets the following requirements:
- The window must be resizable without affecting the layout of the
controls.
- The controls within the groups must be laid out such that there is a
minimum amount of spacing between groups. What should you do?
Options
- AUse a WrapPanel control to organize the groups with its Orientation property set to Vertical.
- BUse a Grid control with its VerticalAlignment property set to Stretch to organize the groups
- CUse a ListBox control to organize the groups.
- DUse a StackPanel control to organize the groups with its Orientation property set to Vertical.
How the community answered
(33 responses)- A3% (1)
- B6% (2)
- C9% (3)
- D82% (27)
Community Discussion
No community discussion yet for this question.