Class Button
A button View that reacts to touch events.
Inheritance
System.Object
Button
Inherited Members
Namespace: Tizen.UIExtensions.NUI.GraphicsView
Assembly: Tizen.UIExtensions.NUI.dll
Syntax
public class Button : GraphicsView<ButtonDrawable>, IMeasurable, IButton
Constructors
Button()
Initializes a new instance of the Button class.
Declaration
public Button()
Properties
BackgroundColor
Gets or sets the color which will fill the background of a Button
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
CornerRadius
Gets or sets the corner radius for the button, in device-independent units.
Declaration
public double CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
IsPressed
Declaration
public bool IsPressed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Text
Gets or sets the Text displayed as the content of the button.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TextColor
Gets or sets the Color for the text of the button.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
OnTouch(Object, TouchEventArgs)
Declaration
protected override bool OnTouch(object source, TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source | |
TouchEventArgs | e |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Tizen.UIExtensions.NUI.GraphicsView.GraphicsView<Tizen.UIExtensions.Common.GraphicsView.ButtonDrawable>.OnTouch(System.Object, TouchEventArgs)
Events
Clicked
Occurs when the Button is clicked.
Declaration
public event EventHandler Clicked
Event Type
Type | Description |
---|---|
System.EventHandler |
Pressed
Occurs when the Button is pressed.
Declaration
public event EventHandler Pressed
Event Type
Type | Description |
---|---|
System.EventHandler |
Released
Occurs when the Button is released.
Declaration
public event EventHandler Released
Event Type
Type | Description |
---|---|
System.EventHandler |
Explicit Interface Implementations
IButton.BackgroundColor
Declaration
Color IButton.BackgroundColor { get; }
Returns
Type | Description |
---|---|
Color |
IButton.CornerRadius
Declaration
double IButton.CornerRadius { get; }
Returns
Type | Description |
---|---|
System.Double |