# Docking and Layout

## Content

C1HamburgerMenu supports standard Windows Forms docking through the `Dock` property.

| Dock value | @cols=2:Layout Behavior |
| ---------- | --------------- | --------------- |
| `Left`, `Right` | The control width defines the collapsed menu width. |
| `Top`, `Bottom` | The control height defines the collapsed menu height. |
| `Fill` | The menu fills its container. |
| `None` | Set both `Width` and `Height`. |

Set `AllowWrapToNextLine` to `true` when pushed content can wrap after the available width is reduced. Set `RightToLeft` to mirror the layout for right-to-left languages.

***

## Content Push

When `ExpandedMode` is set to `PushContent`, the menu repositions adjacent controls as it expands or collapses. Use `PushGap` to define the spacing between the menu and affected controls.
The `AllowWrapToNextLine` property determines whether affected controls can move to the next line when the available width is insufficient.
During a push operation, the menu raises the following events in order:

1. `PushContentLayoutStarting`
2. `PushContentControlMoving` for each affected control
3. `PushContentControlMoved` for each affected control
4. `PushContentLayoutFinished`

The following properties provide layout bounds for each affected control.

| Property | @cols=2:Description |
| -------- | ----------- | ----------- |
| `OriginalBounds` | Bounds before the push operation. |
| `ProposedBounds` | Bounds calculated by the layout operation. |
| `NewBounds` | Bounds applied after the control is moved. This value is available after the move operation completes. |

Applications can use these events to animate control movement, log layout changes, or adjust related UI during menu expansion and collapse.