Class Button
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
Button is one kind of common component, a button clearly describes what action will occur when the user selects it. Button may contain text or an icon.
public class Button : Control, INotifyPropertyChanged, IDisposable
- Inheritance
-
objectTizen.NUI.Binding.BindableObjectTizen.NUI.Binding.ElementTizen.NUI.Components.ControlButton
- Derived
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
View SourceButton()
Creates a new instance of a Button.
Declaration
public Button()
Properties
View SourceFontFamily
Text font family in Button.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
string |
IconPadding
Icon padding in Button, work only when show icon and text.
Declaration
public Extents IconPadding { get; set; }
Property Value
Type | Description |
---|---|
Extents |
IconURL
Icon image's resource url in Button.
Declaration
public string IconURL { get; set; }
Property Value
Type | Description |
---|---|
string |
IconURLSelector
Icon image's resource url selector in Button.
Declaration
public StringSelector IconURLSelector { get; set; }
Property Value
Type | Description |
---|---|
Tizen.NUI.Components.StringSelector |
IsEnabled
Flag to decide enable or disable in Button.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsSelectable
Flag to decide Button can be selected or not.
Declaration
public bool IsSelectable { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsSelected
Flag to decide selected state in Button.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
bool |
PointSize
Text point size in Button.
Declaration
public float PointSize { get; set; }
Property Value
Type | Description |
---|---|
float |
PointSizeSelector
Text font size selector in Button.
Declaration
public FloatSelector PointSizeSelector { get; set; }
Property Value
Type | Description |
---|---|
Tizen.NUI.Components.FloatSelector |
Text
The text of Button.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
TextAlignment
Text horizontal alignment in Button.
Declaration
public HorizontalAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlignment |
TextColor
Text color in Button.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
TextColorSelector
Text color selector in Button.
Declaration
public ColorSelector TextColorSelector { get; set; }
Property Value
Type | Description |
---|---|
Tizen.NUI.Components.ColorSelector |
TextPadding
Text padding in Button, work only when show icon and text.
Declaration
public Extents TextPadding { get; set; }
Property Value
Type | Description |
---|---|
Extents |
TextSelector
Text string selector in Button.
Declaration
public StringSelector TextSelector { get; set; }
Property Value
Type | Description |
---|---|
Tizen.NUI.Components.StringSelector |
TranslatableText
Translate text string in Button.
Declaration
public string TranslatableText { get; set; }
Property Value
Type | Description |
---|---|
string |
TranslatableTextSelector
Translateable text string selector in Button.
Declaration
public StringSelector TranslatableTextSelector { get; set; }
Property Value
Type | Description |
---|---|
Tizen.NUI.Components.StringSelector |
Methods
View SourceDispose(DisposeTypes)
Dispose Button and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
OnKey(Key)
Called after a key event is received by the view that has had its focus set.
Declaration
public override bool OnKey(Key key)
Parameters
Type | Name | Description |
---|---|---|
Key | key | The key event. |
Returns
Type | Description |
---|---|
bool | True if the key event should be consumed. |
Overrides
Events
View SourceClickEvent
An event for the button clicked signal which can be used to subscribe or unsubscribe the event handler provided by the user.
Declaration
public event EventHandler<Button.ClickEventArgs> ClickEvent
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><Button.ClickEventArgs> |
StateChangedEvent
An event for the button state changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.
Declaration
public event EventHandler<Button.StateChangedEventArgs> StateChangedEvent
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><Button.StateChangedEventArgs> |