Button
Generate events to run methods
- BrowseName
- Button
- SuperType
- Element(Item)
Properties
Name | BrowseName | DataType | Description |
---|---|---|---|
Text | Text | LocalizedText | Text inserted and displayed |
Appearance | Appearance | String | Button style |
Image path | ImagePath | ResourceUri | Image displayed in the object |
Image position | ImagePosition | Position | Position of the image to display |
Text position | TextPosition | Position | Position of the text on the horizontal and vertical axes relative to the sides of the object |
Image width | ImageWidth | Size | Width of the image to display. The Auto value sets the native width of the image |
Image height | ImageHeight | Size | Height of the image to display. The Auto value sets the native height of the image |
Word wrap | WordWrap | Boolean | Enable/disable the automatic word wrapping when the text is wider than the container. Ignored when the object width is automatic or when text abbreviation is set |
Text trimming | Elide | Text trimming | Text trimming mode. Insert three dots (...) in the indicated position when the text is too long for the available space. Ignored when the object width is automatic or when word wrap is set |
Font family | FontFamily | Font | Font family |
Font weight | FontWeight | Font weight | Font weight |
Font italic | FontItalic | Boolean | Enables/disables italics in the text |
Font size | FontSize | Size | Font size |
Text color | TextColor | Color | Color of the text to display |
Background color | BackgroundColor | Color | If the Appearance is Default, Bordered Circular or Bordered Rectangular, it is the color of the button. If the Appearance is Accent, the color is the one set in the style sheet in the Highlight color property |
Style | Style | String | Graphic style applied to the control |
Visible | Visible | Boolean | (Inherited from Element) |
Enabled | Enabled | Boolean | (Inherited from Element) |
Opacity | Opacity | Float | (Inherited from Element) |
Left margin | LeftMargin | Size | (Inherited from Element) |
Top margin | TopMargin | Size | (Inherited from Element) |
Right margin | RightMargin | Size | (Inherited from Element) |
Bottom margin | BottomMargin | Size | (Inherited from Element) |
Width | Width | Size | (Inherited from Element) |
Height | Height | Size | (Inherited from Element) |
Horizontal alignment | HorizontalAlignment | Horizontal alignment | (Inherited from Element) |
Vertical alignment | VerticalAlignment | Vertical alignment | (Inherited from Element) |
Rotation | Rotation | Size | (Inherited from Element) |
Events
MouseClick event
- BrowseName
- MouseClick event
Event that is triggered when the left mouse button is pressed and then released
MouseDown event
- BrowseName
- MouseDown event
Event that is triggered when the left mouse button is pressed (falling edge)
MouseUp event
- BrowseName
- MouseUp event
Event that is triggered when the left mouse button is released (rising edge)