Class DefaultLinearItem

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll

DefaultLinearItem is one kind of common component, a DefaultLinearItem clearly describes what action will occur when the user selects it. DefaultLinearItem may contain text or an icon.

C#
Copy
public class DefaultLinearItem : RecyclerViewItem, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

DefaultLinearItem()

Creates a new instance of DefaultLinearItem.

Declaration
C#
Copy
public DefaultLinearItem()
View Source

DefaultLinearItem(String)

Creates a new instance of a DefaultLinearItem with style.

Declaration
C#
Copy
public DefaultLinearItem(string style)
Parameters
Type Name Description
String style

Create DefaultLinearItem by style defined in UX.

View Source

DefaultLinearItem(DefaultLinearItemStyle)

Creates a new instance of a DefaultLinearItem with style.

Declaration
C#
Copy
public DefaultLinearItem(DefaultLinearItemStyle itemStyle)
Parameters
Type Name Description
DefaultLinearItemStyle itemStyle

Create DefaultLinearItem by style customized by user.

Fields

View Source

ExtraProperty

ExtraProperty

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

IconProperty

IconProperty

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

SubTextProperty

SubTextProperty

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

TextProperty

TextProperty

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

Properties

View Source

Extra

Extra icon part of DefaultLinearItem. it will place next of label.

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

Icon

Icon part of DefaultLinearItem.

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

Label

DefaultLinearItem's text part of DefaultLinearItem

Declaration
C#
Copy
public TextLabel Label { get; }
Property Value
Type Description
TextLabel
View Source

Seperator

Seperator divider of DefaultLinearItem. it will place at the end of item.

Declaration
C#
Copy
public View Seperator { get; }
Property Value
Type Description
View
View Source

SubLabel

DefaultLinearItem's secondary text part of DefaultLinearItem

Declaration
C#
Copy
public TextLabel SubLabel { get; }
Property Value
Type Description
TextLabel
View Source

SubText

The text of DefaultLinearItem.

Declaration
C#
Copy
public string SubText { get; set; }
Property Value
Type Description
String
View Source

Text

The text of DefaultLinearItem.

Declaration
C#
Copy
public string Text { get; set; }
Property Value
Type Description
String

Methods

View Source

AccessibilityGetName()

Gets accessibility name.

Declaration
C#
Copy
protected override string AccessibilityGetName()
Returns
Type Description
String
Overrides
View Source

ApplyStyle(ViewStyle)

Apply style to DefaultLinearItemStyle.

Declaration
C#
Copy
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type Name Description
ViewStyle viewStyle

The style to apply.

Overrides
View Source

CreateIcon(ViewStyle)

Creates Item's icon part.

Declaration
C#
Copy
protected virtual ImageView CreateIcon(ViewStyle style)
Parameters
Type Name Description
ViewStyle style
Returns
Type Description
ImageView
View Source

CreateLabel(TextLabelStyle)

Creates Item's text part.

Declaration
C#
Copy
protected virtual TextLabel CreateLabel(TextLabelStyle style)
Parameters
Type Name Description
TextLabelStyle style
Returns
Type Description
TextLabel
View Source

CreateViewStyle()

Get DefaultLinearItem style.

Declaration
C#
Copy
protected override ViewStyle CreateViewStyle()
Returns
Type Description
ViewStyle

The default DefaultLinearItem style.

Overrides
View Source

Dispose(DisposeTypes)

Dispose Item and all children on it.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

Dispose type.

Overrides
View Source

LayoutChild()

Layout child, it can be override.

Declaration
C#
Copy
protected override void LayoutChild()
Overrides
View Source

MeasureChild()

Measure child, it can be override.

Declaration
C#
Copy
protected override void MeasureChild()
Overrides
View Source

OnInitialize()

Initializes AT-SPI object.

Declaration
C#
Copy
public override void OnInitialize()
Overrides
View Source

OnRelayout(Vector2, RelayoutContainer)

Called after the size negotiation has been finished for this control.
The control is expected to assign this given size to itself or its children.
Should be overridden by derived classes if they need to layout views differently after certain operations like add or remove views, resize, or after changing specific properties.
As this function is called from inside the size negotiation algorithm, you cannot call RequestRelayout (the call would just be ignored).

Declaration
C#
Copy
public override void OnRelayout(Vector2 size, RelayoutContainer container)
Parameters
Type Name Description
Vector2 size

The allocated size.

RelayoutContainer container

The control should add views to this container that it is not able to allocate a size for.

Overrides

Implements

Extension Methods