Class ButtonStyle

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
8

ButtonStyle is a class which saves Button's ux data.

C#
Copy
public class ButtonStyle : ControlStyle, IDynamicResourceHandler, IDisposable
Inheritance
Derived
Implements
IDisposable

Constructors

View Source

ButtonStyle()

Creates a new instance of a ButtonStyle.

Declaration
C#
Copy
public ButtonStyle()
API Level: 8
View Source

ButtonStyle(ButtonStyle)

Creates a new instance of a ButtonStyle with style.

Declaration
C#
Copy
public ButtonStyle(ButtonStyle style)
Parameters
Type Name Description
ButtonStyle style

Create ButtonStyle by style customized by user.

API Level: 8

Fields

View Source

IconPaddingProperty

Declaration
C#
Copy
public static readonly BindableProperty IconPaddingProperty
Field Value
Type Description
BindableProperty
View Source

IconRelativeOrientationProperty

Declaration
C#
Copy
public static readonly BindableProperty IconRelativeOrientationProperty
Field Value
Type Description
BindableProperty
View Source

IsSelectableProperty

Declaration
C#
Copy
public static readonly BindableProperty IsSelectableProperty
Field Value
Type Description
BindableProperty
View Source

IsSelectedProperty

Declaration
C#
Copy
public static readonly BindableProperty IsSelectedProperty
Field Value
Type Description
BindableProperty
View Source

TextPaddingProperty

Declaration
C#
Copy
public static readonly BindableProperty TextPaddingProperty
Field Value
Type Description
BindableProperty

Properties

View Source

Icon

Icon's Style.

Declaration
C#
Copy
public ImageViewStyle Icon { get; set; }
Property Value
Type Description
ImageViewStyle
API Level: 8
View Source

IconPadding

Icon padding in Button. It is shortcut of Icon.Padding.

Declaration
C#
Copy
public Extents IconPadding { get; set; }
Property Value
Type Description
Extents
API Level: 8
View Source

IconRelativeOrientation

Icon relative orientation.

Declaration
C#
Copy
public Button.IconOrientation? IconRelativeOrientation { get; set; }
Property Value
Type Description
Nullable<Button.IconOrientation>
API Level: 8
View Source

IsEnabled

Flag to decide button can be selected or not.

Declaration
C#
Copy
public bool? IsEnabled { get; set; }
Property Value
Type Description
Nullable<Boolean>
API Level: 8
View Source

IsSelectable

Flag to decide Button can be selected or not.

Declaration
C#
Copy
public bool? IsSelectable { get; set; }
Property Value
Type Description
Nullable<Boolean>
API Level: 8
View Source

IsSelected

Flag to decide selected state in Button.

Declaration
C#
Copy
public bool? IsSelected { get; set; }
Property Value
Type Description
Nullable<Boolean>
API Level: 8
View Source

ItemAlignment

The item (text or icon or both) alignment.

Declaration
C#
Copy
public LinearLayout.Alignment? ItemAlignment { get; set; }
Property Value
Type Description
Nullable<LinearLayout.Alignment>
View Source

ItemHorizontalAlignment

The item (text or icon or both) horizontal alignment.

Declaration
C#
Copy
public HorizontalAlignment? ItemHorizontalAlignment { get; set; }
Property Value
Type Description
Nullable<HorizontalAlignment>
View Source

ItemSpacing

The space between icon and text. The value is applied when there exist icon and text both. The width value is used when the items are arranged horizontally. Otherwise, the height value is used.

Declaration
C#
Copy
public Size2D ItemSpacing { get; set; }
Property Value
Type Description
Size2D
View Source

ItemVerticalAlignment

The item (text or icon or both) vertical alignment.

Declaration
C#
Copy
public VerticalAlignment? ItemVerticalAlignment { get; set; }
Property Value
Type Description
Nullable<VerticalAlignment>
View Source

Overlay

Overlay image's Style.

Declaration
C#
Copy
public ImageViewStyle Overlay { get; set; }
Property Value
Type Description
ImageViewStyle
API Level: 8
View Source

Text

Text's Style.

Declaration
C#
Copy
public TextLabelStyle Text { get; set; }
Property Value
Type Description
TextLabelStyle
API Level: 8
View Source

TextPadding

Text padding in Button. It is shortcut of Text.Padding.

Declaration
C#
Copy
public Extents TextPadding { get; set; }
Property Value
Type Description
Extents
API Level: 8

Methods

View Source

CopyFrom(BindableObject)

Copy properties of other ViewStyle to this.

Declaration
C#
Copy
public override void CopyFrom(BindableObject bindableObject)
Parameters
Type Name Description
BindableObject bindableObject
Overrides
API Level: 8
View Source

CreateExtension()

Create corresponding ButtonExtension. This is to be called by a Button. You may override this function to customize button's behavior.

Declaration
C#
Copy
public virtual ButtonExtension CreateExtension()
Returns
Type Description
ButtonExtension
View Source

Dispose(Boolean)

Dispose ButtonStyle and all children on it.

Declaration
C#
Copy
protected override void Dispose(bool disposing)
Parameters
Type Name Description
Boolean disposing

true in order to free managed objects

Overrides

Implements

IDisposable

Extension Methods