Common control properties
Each control has a set of properties which configures various aspects of the controls appearance and functionality. Some properties are valid only for specific controls, and these are described for the individual control. Other properties are more general and are described below. There may be general properties that are not valid for all controls.
General properties
Property |
Description |
Commands |
The commands that are connected to this control. The availability (visibility) of a command is determined by whether the control has focus or not. For more information, see Commands. |
Data Binding Type |
The type of binding between the control and the data source. For most controls this is option is not available, as the inherent nature of the control only allows one of the two. See also Data Binding Fundamentals.
Value
The control is bound to a field in a data source, and a value is transferred between the control and the data source.
Object
The control is bound to a data source, and a selection of objects is transferred between the control and the data source.
|
Data Binding |
The binding to the data for the control. See Data Binding. |
Enabled |
The control is enabled. If not enabled, the control is dimmed and read only. If the control that is not enabled is a container, all the controls in the container control is set not enabled. See also Read Only above.
Yes
The control is enabled for for the end user.
No
The control is not enabled for the end user.
Condition...
A condition determines if the control is enabled for the end user. Use a condition when the control should only be enabled in som cases, for example depending on the state of an object.
|
Events |
The events this control is bound to. For more information, see Events. |
Hide if Empty |
The control is not displayed if the data it is bound to is empty. |
Label |
The label for the control. Enter a text in the box, or click the "..." button in the box to select a field to use the name of the field as label. |
Label - Colon Suffix |
Show a colon ":" after the label. |
Name |
The name of the control is used when referring to the control during definition of the form, and must be unique within the form. The name is not visible to the end user. |
Null Text |
The value to be displayed if the control is empty. The null text is displayed as dimmed text which disappears when the control is activated. For example, enter the value "Enter comment here" to display this value in an empty comment field to encourage users to do so. |
Read Only |
The field value is not possible to edit, but is displayed as normal. If the control is a container, all the controls in the container control is set read only. See also Enabled below.
Yes
The field value is read only for for the end user.
No
The field value is not read only for the end user.
Condition...
A condition determines if the field value is read only for the end user. Use a condition when the field value only should be read only in som cases, for example depending on the state of an object.
|
Screen Tip |
The screen tip which is displayed when the mouse cursor is moved over the control. Enter a text in the box, or click the "..." button in the box to select a field. |
Tab Index |
The number in the tab sequence order for the control. |
Tab Stop |
The control is part of the tab sequence in the form. |
Visible |
Yes
The field is visible to the end user.
No
The field is not visible to the end user.
Condition...
A condition determines if the field is visible to the end user. Use a condition when the field only should be visible in som cases, for example depending on the state of an object.
|
Size and position properties
Property |
Description |
Height |
The Height of the control. Auto height is used when the Vertical Alignment is set to Stretch. |
Horizontal Alignment |
Left
The control is aligned to the left inside the container. If there are other controls inside the container that are also aligned to the left, they will be placed next to each other from the left edge, and they may be manualle re-ordered.
Center
The control is aligned to the center inside the container. If there are other controls inside the container that are also aligned to the center, they will be placed next to each other in the center, and they may be manualle re-ordered.
Right
The control is aligned to the right inside the container. If there are other controls inside the container that are also aligned to the right, they will be placed next to each other from the right edge, and they may be manualle re-ordered.
Stretch
The control is stretched in horizontal direction to fill the container. The width of the control is automatic. If there are other controls inside the container that are also stretched, they will divide the available area between them.
|
Margin |
The distance between the side of a control and the adjacent control. Margins are additive, which means that two controls next to each other, are placed at a distance apart, equal to the sum of the two margins. This is true if the controls are inside a container with item space set to zero, otherwise the item space is also added. |
Margin - Bottom |
Bottom margin. |
Margin- Left
|
Left margin. |
Margin - Right |
Right margin. |
Margin - Top |
Top margin. |
Padding |
The distance between the side of the control and its content. Padding is typically defined for controls which contain other controls, such as a Group or Group Box. For common controls, such as a Text Edit or a Button, the Padding property is rarely used to position the control. We do not recommend that you use the Padding property for any other controls than container based controls, such as Group, Group Box, and Tab Sheet, as this property may be hidden for common controls in future versions. |
Padding - Bottom |
Bottom padding. |
Padding - Left |
Left padding |
Padding - Right |
Right padding. |
Padding - Top |
Top padding. |
Vertical Alignment |
Top
The control is aligned to the top inside the container. If there are other controls inside the container that are also aligned to the top, they will be placed below each other from the top edge, and they may be manualle re-ordered.
Center
The control is aligned to the center inside the container. If there are other controls inside the container that are also aligned to the center, they will be placed above each other in the center, and they may be manualle re-ordered.
Bottom
The control is aligned to the bottom inside the container. If there are other controls inside the container that are also aligned to the bottom, they will be placed above each other from the bottom edge, and they may be manualle re-ordered.
Stretch
The control is stretched in vertical direction to fill the container. The height of the control is automatic. If there are other controls inside the container that are also stretched, they will divide the available area between them.
|
Width |
The width of the control. Auto width is used when the Horizontal Alignment is set to Stretch. |
Property |
Description |
Automatic Formatting |
|
Background Color |
The background color of the control. |
Border Color |
The color of the border surrounding the control. |
Border Thickness |
The thickness of the border surrounding the control. |
Display Format String |
Format the value and add any text to its textual representation. The formatted text is displayed if the value is not currently edited (if it is not focused or it is read-only).
For example, to display currency values, set the DisplayFormatString property to 'c2'. If the editor's value is 99.9, its formatted equivalent will be $99.90.
The specified display format should match the value's type, otherwise, it is ignored and is not applied.
Standard format specifiers for composing the format pattern are described in the Format Strings topics in MSDN. |
Font Size |
The size of the text in the control. |
Font Style |
The style of the text in the control: Normal or Italic.
|
Font Weight |
The weight of the text in the control: Normal or Bold. |
Foreground Color |
The color of the text in the control. |
Label Background Color |
The background color for the label. |
Label Font Size |
The size of the font for the label. |
Label Foreground Color |
The color of the label text. |
Label Font Style |
The style of the label text in the control: Normal or Italic.
|
Label Font Weight |
The weight of the label text in the control: Normal or Bold. |
Label Horizontal Alignment |
The alignment of the label text within the available horizontal space:
Left
Align the label text to the left.
Center
Align the label text to the center.
Right
Align the label text to the right.
|
Label Position |
Left
Display label for control to the left of the control.
Top
Display label for control above the control.
|
Label Vertical Alignment |
The alignment of the label text within the available vertical space:
Top
Align the label text to the top.
Center
Align the label text to the center.
Bottom
Align the label text to the bottom.
|
Show Border |
The border is displayed. |
Screen tip properties
General
Property |
Description |
Data Binding |
The data binding specifies the field to use for the screen tip value. For more information see Data Binding and Data Binding Fundamentals. |
Label
|
The label for the screen tip item. Enter a text in the box, or click the "..." button in the box to select a field. |
Label - Colon Suffix |
Show a colon ":" after the label. |
Name |
Used to identify the screen tip in a list of screen tips. |
Size and position
Property |
Description |
Horizontal Alignment |
The alignment of the screen tip item.
Left
The screen tip item is aligned to the left.
Center
The screen tip item is aligned to the center.
Right
The screen tip item is aligned to the right.
Stretch
The screen tip item is stretched from the left to the right, if possible..
|