nerdexam
Microsoft

70-511 · Question #110

You are developing a Windows Presentation Foundation (WPF) application. The application consists of: - A window that contains controls organized into groups. - roups 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.
  • roups 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 Grid control with its VerticalAlignment property set to Stretch to organize the groups
  • BUse a WrapPanel control to organize the groups with its Orientation property set to Vertical.
  • 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

(29 responses)
  • A
    3% (1)
  • B
    17% (5)
  • C
    7% (2)
  • D
    72% (21)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice