Class DefaultGridItem
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
DefaultGridItem is one kind of common component, a DefaultGridItem clearly describes what action will occur when the user selects it. DefaultGridItem may contain text or an icon.
public class DefaultGridItem : RecyclerViewItem, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectDefaultGridItem
- Implements
-
System.IDisposable
Constructors
View SourceDefaultGridItem()
Creates a new instance of DefaultGridItem.
Declaration
public DefaultGridItem()
DefaultGridItem(string)
Creates a new instance of DefaultGridItem with style
Declaration
public DefaultGridItem(string style)
Parameters
| Type | Name | Description |
|---|---|---|
| string | style |
DefaultGridItem(DefaultGridItemStyle)
Creates a new instance of DefaultGridItem with style
Declaration
public DefaultGridItem(DefaultGridItemStyle itemStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| DefaultGridItemStyle | itemStyle |
Fields
View SourceBadgeProperty
BadgeProperty
Declaration
public static readonly BindableProperty BadgeProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
LabelOrientationTypeProperty
LabelOrientationTypeProperty
Declaration
public static readonly BindableProperty LabelOrientationTypeProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
ResourceUrlProperty
ResourceUrlProperty
Declaration
public static readonly BindableProperty ResourceUrlProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
TextProperty
TextProperty
Declaration
public static readonly BindableProperty TextProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Properties
View SourceBadge
DefaultGridItem's badge object. will be placed in right-top edge.
Declaration
public View Badge { get; set; }
Property Value
| Type | Description |
|---|---|
| View |
Image
DefaultGridItem's icon part.
Declaration
public ImageView Image { get; }
Property Value
| Type | Description |
|---|---|
| ImageView |
Label
DefaultGridItem's text part.
Declaration
public TextLabel Label { get; }
Property Value
| Type | Description |
|---|---|
| TextLabel |
LabelOrientationType
Label relative orientation with image in DefaultGridItem.
Declaration
public DefaultGridItem.LabelOrientation LabelOrientationType { get; set; }
Property Value
| Type | Description |
|---|---|
| DefaultGridItem.LabelOrientation |
ResourceUrl
Image resource url in DefaultGridItem.
Declaration
public string ResourceUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Text
The text of DefaultGridItem.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceAccessibilityGetName()
Gets accessibility name.
Declaration
protected override string AccessibilityGetName()
Returns
| Type | Description |
|---|---|
| string |
Overrides
View SourceApplyStyle(ViewStyle)
Apply style to DefaultLinearItemStyle.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceCreateImage(ImageViewStyle)
Creates Item's icon part.
Declaration
protected virtual ImageView CreateImage(ImageViewStyle imageStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| ImageViewStyle | imageStyle |
Returns
| Type | Description |
|---|---|
| ImageView |
CreateLabel(TextLabelStyle)
Creates Item's text part.
Declaration
protected virtual TextLabel CreateLabel(TextLabelStyle textStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| TextLabelStyle | textStyle |
Returns
| Type | Description |
|---|---|
| TextLabel |
Dispose(DisposeTypes)
Dispose Item and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type | Dispose type. |
Overrides
View SourceLayoutChild()
Layout child, it can be override.
Declaration
protected override void LayoutChild()
Overrides
View SourceMeasureChild()
Measure child, it can be override.
Declaration
protected override void MeasureChild()
Overrides
View SourceOnInitialize()
Initializes AT-SPI object.
Declaration
public override void OnInitialize()