In this chapter, we will cover the following recipes:
- Building a UI layout using a Grid
- Placing elements in uniform cells
- Automatically repositioning controls using a WrapPanel
- Placing controls in a Stack
- Positioning controls inside a Canvas
- Wrapping UI elements using a Border
- Creating a scrollable panel
- Docking controls using a DockPanel
- Rescaling UI elements using a ViewBox
- Creating a tabbed layout
- Dynamically adding/removing elements in a panel
- Implementing the drag and drop feature
Introduction
WPF provides a proper layout and positioning to provide interactive, user-friendly applications with a suitable container element that helps you to position the child UI elements. The parent container is usually the contents ...