Button

Overview

Creates a button for the user to active or indicate status or steps.

Ancestors

  1. Control
  2. Container
 

Descendants

  1. None
 

See Also

  1. None

Constructors

new Button
Description

Creates a new Button control.

Definition

new Button()

Members

border
Description

Gets or sets whether the button has a border around it.

Definition

boolean button.border (default true)
enabled
Description

Gets or sets the buttons availability and visual presentation to the user. When set to false the button is grayed out and does not respond to clicks. The default is true.

Definition

string button.enabled (default true)
image
Description

Gets or sets the associated image to be displayed on the button. This can be a named icon resource for the OS, or a URL to an image (including the app:// schema).

Definition

string button.image
state
Description

Gets or sets whether the button is "on" or "off". This has different meanings depending on the type of button, for radio, checkbox and toggle type buttons this changes its visual style. This has no meaning (visually) for normal buttons. The default is false.

Definition

boolean button.state (default false)
title
Description

Gets or sets the text label on the button.

Definition

string button.title
type
Description

Gets or sets the type of button, this can be "toggle", "checkbox", "radio" or "normal".

Definition

string button.type