[]
C1HamburgerMenu supports standard Windows Forms docking through the Dock property.
Dock value | Layout Behavior | |
|---|---|---|
| The control width defines the collapsed menu width. | |
| The control height defines the collapsed menu height. | |
| The menu fills its container. | |
| Set both | |
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.
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:
PushContentLayoutStarting
PushContentControlMoving for each affected control
PushContentControlMoved for each affected control
PushContentLayoutFinished
The following properties provide layout bounds for each affected control.
Property | Description | |
|---|---|---|
| Bounds before the push operation. | |
| Bounds calculated by the layout operation. | |
| 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.