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, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
Constructors
View Source
DefaultGridItem()
Creates a new instance of DefaultGridItem.
Declaration
View Source
DefaultGridItem(String)
Creates a new instance of DefaultGridItem with style
Declaration
public DefaultGridItem(string style)
Parameters
Type |
Name |
Description |
String |
style |
|
View Source
DefaultGridItem(DefaultGridItemStyle)
Creates a new instance of DefaultGridItem with style
Declaration
public DefaultGridItem(DefaultGridItemStyle itemStyle)
Parameters
Fields
Declaration
public static readonly BindableProperty BadgeProperty
Field Value
View Source
LabelOrientationTypeProperty
LabelOrientationTypeProperty
Declaration
public static readonly BindableProperty LabelOrientationTypeProperty
Field Value
Declaration
public static readonly BindableProperty ResourceUrlProperty
Field Value
Declaration
public static readonly BindableProperty TextProperty
Field Value
Properties
View Source
Badge
DefaultGridItem's badge object. will be placed in right-top edge.
Declaration
public View Badge { get; set; }
Property Value
Declaration
public ImageView Image { get; }
Property Value
Declaration
public TextLabel Label { get; }
Property Value
View Source
LabelOrientationType
Label relative orientation with image in DefaultGridItem.
Declaration
public DefaultGridItem.LabelOrientation LabelOrientationType { get; set; }
Property Value
View Source
ResourceUrl
Image resource url in DefaultGridItem.
Declaration
public string ResourceUrl { get; set; }
Property Value
Declaration
public string Text { get; set; }
Property Value
Methods
Declaration
protected override string AccessibilityGetName()
Returns
Overrides
View Source
ApplyStyle(ViewStyle)
Apply style to DefaultLinearItemStyle.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type |
Name |
Description |
ViewStyle |
viewStyle |
The style to apply.
|
Overrides
View Source
CreateImage(ImageViewStyle)
Creates Item's icon part.
Declaration
protected virtual ImageView CreateImage(ImageViewStyle imageStyle)
Parameters
Returns
View Source
CreateLabel(TextLabelStyle)
Creates Item's text part.
Declaration
protected virtual TextLabel CreateLabel(TextLabelStyle textStyle)
Parameters
Returns
View Source
Dispose(DisposeTypes)
Dispose Item and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
View Source
LayoutChild()
Layout child, it can be override.
Declaration
protected override void LayoutChild()
Overrides
View Source
MeasureChild()
Measure child, it can be override.
Declaration
protected override void MeasureChild()
Overrides
Declaration
public override void OnInitialize()
Overrides
Implements
Extension Methods