Class ButtonGroup
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
ButtonGroup is a group of buttons which can be set common property
public class ButtonGroup : BindableObject, IDynamicResourceHandler, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceButtonGroup(View)
Construct an button group.
Declaration
public ButtonGroup(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | root view |
Fields
View SourceItemBackgroundBorderProperty
Declaration
public static readonly BindableProperty ItemBackgroundBorderProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemBackgroundImageUrlProperty
Declaration
public static readonly BindableProperty ItemBackgroundImageUrlProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemFontFamilyProperty
Declaration
public static readonly BindableProperty ItemFontFamilyProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemheightProperty
Declaration
public static readonly BindableProperty ItemheightProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemImageShadowProperty
Declaration
public static readonly BindableProperty ItemImageShadowProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemPointSizeProperty
Declaration
public static readonly BindableProperty ItemPointSizeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemTextAlignmentProperty
Declaration
public static readonly BindableProperty ItemTextAlignmentProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ItemTextColorProperty
Declaration
public static readonly BindableProperty ItemTextColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
OverLayBackgroundColorSelectorProperty
Declaration
public static readonly BindableProperty OverLayBackgroundColorSelectorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View SourceCount
Get group item number.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
ItemBackgroundBorder
Get or set background border of item.
Declaration
public Rectangle ItemBackgroundBorder { get; set; }
Property Value
Type | Description |
---|---|
Rectangle |
ItemBackgroundImageUrl
The mutually exclusive with "backgroundColor" and "background" type Map.
Declaration
public string ItemBackgroundImageUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
ItemFontFamily
Get or set font family of item.
Declaration
public string ItemFontFamily { get; set; }
Property Value
Type | Description |
---|---|
string |
Itemheight
Common height for all of the Items
Declaration
public float Itemheight { get; set; }
Property Value
Type | Description |
---|---|
float |
ItemImageShadow
Get or set shadow resource of item.
Declaration
public ImageShadow ItemImageShadow { get; set; }
Property Value
Type | Description |
---|---|
ImageShadow |
ItemPointSize
Get or set point size of item.
Declaration
public float ItemPointSize { get; set; }
Property Value
Type | Description |
---|---|
float |
ItemTextAlignment
Get or set text alignment of item.
Declaration
public HorizontalAlignment ItemTextAlignment { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlignment |
ItemTextColor
Get or set text color of item.
Declaration
public Color ItemTextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
OverLayBackgroundColorSelector
Get or set background color of item.
Declaration
public Selector<Color> OverLayBackgroundColorSelector { get; set; }
Property Value
Type | Description |
---|---|
Selector<Color> |
Methods
View SourceAddItem(Button)
Add item into group.
Declaration
public void AddItem(Button bt)
Parameters
Type | Name | Description |
---|---|---|
Button | bt | button item. |
Contains(Button)
Check if the button exists.
Declaration
public bool Contains(Button bt)
Parameters
Type | Name | Description |
---|---|---|
Button | bt | button item |
Returns
Type | Description |
---|---|
bool |
Dispose()
Dispose.
Declaration
public void Dispose()
GetIndex(Button)
Get button item index.
Declaration
public int GetIndex(Button bt)
Parameters
Type | Name | Description |
---|---|---|
Button | bt | button item |
Returns
Type | Description |
---|---|
int |
GetItem(int)
Get item by index.
Declaration
public Button GetItem(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | item index. |
Returns
Type | Description |
---|---|
Button |
RemoveAll()
Remove all items.
Declaration
public void RemoveAll()
RemoveItem(int)
Remove item by index.
Declaration
public void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | item index. |
RemoveItem(Button)
The item to removed.
Declaration
public void RemoveItem(Button bt)
Parameters
Type | Name | Description |
---|---|---|
Button | bt | button item. |
UpdateButton(ButtonStyle)
Update button by style.
Declaration
public void UpdateButton(ButtonStyle btStyle)
Parameters
Type | Name | Description |
---|---|---|
ButtonStyle | btStyle | button style. |
Implements
System.IDisposable