Wisej.Web.FlexLayoutPanel
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a panel that dynamically arranges its child controls.
The FlexLayoutPanel can arrange its child controls using the layout engine specified in LayoutStyle. When the value is set to Default, the child controls are arranged using the default layout engine, using their location, dock style and anchor properties. When the value of LayoutStyle is set to Horizontal, child controls are arranged horizontally in a single row. When the value of LayoutStyle is set to Vertical, child controls are arranged vertically in a single column. Uses the following properties of the child controls:
Margin Increases the space around the control.
AlignY Aligns the control vertically within its parent using one of the VerticalAlignment values. It's used only when LayoutStyle is set to Horizontal.
AlignX Aligns the control horizontally within its parent using one of the HorizontalAlign values. It's used only when LayoutStyle is set to Vertical.
FillWeight Stretches the control's width or height to use the remaining space in the parent FlexLayoutPanel proportionally, according to the fill weights of all the children.
MinimumSize Enforces the minimum size of controls stretched using the FillWeight value.
MaximumSize Enforces the maximum size of controls stretched using the FillWeight value.
Uses the following properties of the parent FlexLayoutPanel control:
HorizontalAlign Aligns all the child controls horizontally using one of the HorizontalAlignment values. If any of the child control indicates a FillWeight value greater than 0, the remaining space is used to stretch the control and no alignment can take place since there is no remaining space. When LayoutStyle is set to Vertical, the value of HorizontalAlign is the default for the AlignX property of child controls.
VerticalAlign Aligns all the child controls vertically using one of the VerticalAlignment values. If any of the child control indicates a FillWeight value greater than 0, the remaining space is used to stretch the control and no alignment can take place since there is no remaining space. When LayoutStyle is set to Horizontal, the value of VerticalAlign is the default for the AlignY property of child controls.
Padding Increases the distance between the child controls and the borders of the parent panel.
Initializes a new instance of the FlexLayoutPanel class.
Initializes a new instance of the FlexLayoutPanel class with the specified settings.
Initializes a new instance of the FlexLayoutPanel class with the specified settings.
HorizontalAlignment: Determines the horizontal alignment of the child controls when LayoutStyle is set to Vertical. (Default: Left
)
LayoutEngine: Returns the control's layout engine.
FlexLayoutStyle: Determines the layout engine to use to arrange the panel's child controls. (Default: Default
)
Default Controls are arranged using the default layout engine and according to their location, dock style, and anchoring.
Horizontal Controls are arranged horizontally in a single row according to their width, alignment, fill weight, and margin. The control's location, dock style, and anchoring are ignored.
Vertical Controls are arranged vertically in a single column according to their height, alignment, fill weight, and margin. The control's location, dock style, and anchoring are ignored.
Int32: Returns or sets the additional space, in pixels, between child controls when LayoutStyle is set to Horizontal or Vertical. The default value is 10. (Default: 10
)
VerticalAlignment: Determines the vertical alignment of the child controls when LayoutStyle is set to Horizontal. (Default: Top
)
Determines the horizontal alignment of the child control within the panel when LayoutStyle is set to Vertical.
Returns: HorizontalAlignment.
Determines the vertical alignment of the child control within the panel when LayoutStyle is set to Horizontal.
Returns: VerticalAlignment.
Determines whether to proportionally stretch the child within the panel to use the remaining space.
Returns: Int32. The fill weight value associated with the control.
The FillWeight property defines the relative width or height of a control managed by the Panel. The default value is 0 and the maximum value is 100.
Determines the horizontal alignment of the child control within the panel when LayoutStyle is set to Vertical.
Determines the vertical alignment of the child control within the panel when LayoutStyle is set to Horizontal.
Determines whether to proportionally stretch the child within the panel to use the remaining space.
The FillWeight property defines the relative width or height of a control managed by the Panel. The default value is 0 and the maximum value is 100. Throws:
ArgumentOutOfRangeException The value is less than 0 or greater than 100.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
controls
An array of Control objects to be added to the panel.
layout
Initial LayoutStyle.
location
The location of the panel on its parent control.
size
The size of the panel.
controls
An array of Control objects to be added to the panel.
layout
Initial LayoutStyle.
control
control
control
The child control.
control
value
control
value
control
The child control.
value
The fill weight value to set.
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
Provides access to common image properties across the controls that implement this interface.
All wisej components implement this interface.
All wisej controls derived from the Control class must implement this interface.
Allows an object to serialize itself.
Default | Child controls are arranged according to the location, dock style and anchoring values. |
Horizontal | Child controls are arranged horizontally using their margin and alignment properties. |
Vertical | Child controls are arranged vertically using their margin and alignment properties. |
Determines the layout engine to use to arrange the panel's child controls. |