Class UIButton
Binding to UI buttons
Inherited Members
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class UIButton : UIComponent
Constructors
UIButton(Button)
Declaration
public UIButton(Button ent)
Parameters
| Type | Name | Description |
|---|---|---|
| GeonBit.UI.Entities.Button | ent |
UIButton(String, Closure, EUIAnchor)
Create a UIButton.
Declaration
public UIButton(string text, Closure callbackClick = null, EUIAnchor position = EUIAnchor.AutoCenter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | The text of this button |
| Closure | callbackClick | A callback to fire when this button is clicked |
| EUIAnchor | position | The position of this button relative to its parent |
Properties
OnClick
A Closure to call when this UIButton is clicked.
Declaration
public Closure OnClick { get; set; }
Property Value
| Type | Description |
|---|---|
| Closure |
Text
The text of this button.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |