Class DefaultTitleItem
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
DefaultTitleItem is one kind of common component, a DefaultTitleItem clearly describes what action will occur when the user selects it. DefaultTitleItem may contain text or an icon.
public class DefaultTitleItem : RecyclerViewItem, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectDefaultTitleItem
- Implements
-
System.IDisposable
Constructors
View SourceDefaultTitleItem()
Creates a new instance of DefaultTitleItem.
Declaration
public DefaultTitleItem()
DefaultTitleItem(string)
Creates a new instance of a DefaultTitleItem with style.
Declaration
public DefaultTitleItem(string style)
Parameters
| Type | Name | Description |
|---|---|---|
| string | style | Create DefaultTitleItem by style defined in UX. |
DefaultTitleItem(DefaultTitleItemStyle)
Creates a new instance of a DefaultTitleItem with style.
Declaration
public DefaultTitleItem(DefaultTitleItemStyle itemStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| DefaultTitleItemStyle | itemStyle | Create DefaultTitleItem by style customized by user. |
Fields
View SourceIconProperty
IconProperty
Declaration
public static readonly BindableProperty IconProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
TextProperty
TextProperty
Declaration
public static readonly BindableProperty TextProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Properties
View SourceIcon
Icon part of DefaultTitleItem.
Declaration
public View Icon { get; set; }
Property Value
| Type | Description |
|---|---|
| View |
Label
DefaultTitleItem's text part of DefaultTitleItem
Declaration
public TextLabel Label { get; }
Property Value
| Type | Description |
|---|---|
| TextLabel |
Seperator
Seperator divider of DefaultTitleItem. it will place at the end of item.
Declaration
public View Seperator { get; }
Property Value
| Type | Description |
|---|---|
| View |
Text
The text of DefaultTitleItem.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceApplyStyle(ViewStyle)
Apply style to DefaultTitleItemStyle.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceCreateIcon(ViewStyle)
Creates Item's icon part.
Declaration
protected virtual ImageView CreateIcon(ViewStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewStyle | style |
Returns
| Type | Description |
|---|---|
| ImageView |
CreateLabel(TextLabelStyle)
Creates Item's text part.
Declaration
protected virtual TextLabel CreateLabel(TextLabelStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| TextLabelStyle | style |
Returns
| Type | Description |
|---|---|
| TextLabel |
CreateViewStyle()
Get DefaultTitleItem style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
| Type | Description |
|---|---|
| ViewStyle | The default DefaultTitleItem style. |
Overrides
View SourceDispose(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()
Overrides
View SourceOnRelayout(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
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. |