Class Tab

    Definition

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

    Tab is one kind of common component, it can be used as menu label. User can handle Tab by adding/inserting/deleting TabItem.

    public class Tab : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    Tab
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    Tab()

    Creates a new instance of a Tab.

    Declaration
    public Tab()
    View Source

    Tab(string)

    Creates a new instance of a Tab with style.

    Declaration
    public Tab(string style)
    Parameters
    Type Name Description
    string style

    Create Tab by special style defined in UX.

    View Source

    Tab(TabStyle)

    Creates a new instance of a Tab with style.

    Declaration
    public Tab(TabStyle tabStyle)
    Parameters
    Type Name Description
    TabStyle tabStyle

    Create Tab by style customized by user.

    Fields

    View Source

    FontFamilyProperty

    FontFamilyProperty

    Declaration
    public static readonly BindableProperty FontFamilyProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ItemPaddingProperty

    ItemPaddingProperty

    Declaration
    public static readonly BindableProperty ItemPaddingProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ItemSpaceProperty

    ItemSpaceProperty

    Declaration
    public static readonly BindableProperty ItemSpaceProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    PointSizeProperty

    PointSizeProperty

    Declaration
    public static readonly BindableProperty PointSizeProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    SelectedItemIndexProperty

    SelectedItemIndexProperty

    Declaration
    public static readonly BindableProperty SelectedItemIndexProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    SpaceProperty

    SpaceProperty

    Declaration
    public static readonly BindableProperty SpaceProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    TextColorProperty

    TextColorProperty

    Declaration
    public static readonly BindableProperty TextColorProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    TextColorSelectorProperty

    TextColorSelectorProperty

    Declaration
    public static readonly BindableProperty TextColorSelectorProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    UnderLineBackgroundColorProperty

    UnderLineBackgroundColorProperty

    Declaration
    public static readonly BindableProperty UnderLineBackgroundColorProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    UnderLineSizeProperty

    UnderLineSizeProperty

    Declaration
    public static readonly BindableProperty UnderLineSizeProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    UseTextNaturalSizeProperty

    UseTextNaturalSizeProperty

    Declaration
    public static readonly BindableProperty UseTextNaturalSizeProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    FontFamily

    Text font family in Tab.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    string
    View Source

    ItemPadding

    Item paddings in Tab. Sequence as Left, Right, Top, Bottom

    Declaration
    public Extents ItemPadding { get; set; }
    Property Value
    Type Description
    Extents
    View Source

    ItemSpace

    Gap between items.

    Declaration
    public int ItemSpace { get; set; }
    Property Value
    Type Description
    int
    View Source

    PointSize

    Text point size in Tab.

    Declaration
    public float PointSize { get; set; }
    Property Value
    Type Description
    float
    View Source

    SelectedItemIndex

    Selected item's index in Tab.

    Declaration
    public int SelectedItemIndex { get; set; }
    Property Value
    Type Description
    int
    View Source

    Space

    Space in Tab. Sequence as Left, Right, Top, Bottom

    Declaration
    public Extents Space { get; set; }
    Property Value
    Type Description
    Extents
    View Source

    Style

    Return currently applied style.

    Declaration
    public TabStyle Style { get; }
    Property Value
    Type Description
    TabStyle
    Remarks

    Modifying contents in style may cause unexpected behaviour.

    View Source

    TextColor

    Text color in Tab.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    TextColorSelector

    Text color selector in Tab.

    Declaration
    public ColorSelector TextColorSelector { get; set; }
    Property Value
    Type Description
    ColorSelector
    View Source

    Underline

    Get underline of Tab.

    Declaration
    public View Underline { get; }
    Property Value
    Type Description
    View
    View Source

    UnderLineBackgroundColor

    UnderLine view's background in Tab.

    Declaration
    public Color UnderLineBackgroundColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    UnderLineSize

    UnderLine view's size in Tab.

    Declaration
    public Size UnderLineSize { get; set; }
    Property Value
    Type Description
    Size
    View Source

    UseTextNaturalSize

    Flag to decide if TabItem is adjusted by text's natural width. If true, TabItem's width will be equal as text's natural width, if false, it will be decided by Tab's width and tab item count.

    Declaration
    public bool UseTextNaturalSize { get; set; }
    Property Value
    Type Description
    bool

    Methods

    View Source

    AddItem(TabItemData)

    Add tab item by item data. The added item will be added to end of all items automatically.

    Declaration
    public void AddItem(Tab.TabItemData itemData)
    Parameters
    Type Name Description
    Tab.TabItemData itemData

    Item data which will apply to tab item view.

    View Source

    ApplyStyle(ViewStyle)

    Apply style to tab.

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

    The style to apply.

    Overrides
    View.ApplyStyle(ViewStyle)
    View Source

    CreateViewStyle()

    Get Tab style.

    Declaration
    protected override ViewStyle CreateViewStyle()
    Returns
    Type Description
    ViewStyle

    The default tab style.

    Overrides
    Control.CreateViewStyle()
    View Source

    DeleteItem(int)

    Delete tab item by index.

    Declaration
    public void DeleteItem(int itemIndex)
    Parameters
    Type Name Description
    int itemIndex

    Position index where will be deleted.

    View Source

    Dispose(DisposeTypes)

    Dispose Tab and all children on it.

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

    Dispose type.

    Overrides
    Control.Dispose(DisposeTypes)
    View Source

    InsertItem(TabItemData, int)

    Insert tab item by item data. The inserted item will be added to the special position by index automatically.

    Declaration
    public void InsertItem(Tab.TabItemData itemData, int index)
    Parameters
    Type Name Description
    Tab.TabItemData itemData

    Item data which will apply to tab item view.

    int index

    Position index where will be inserted.

    View Source

    LayoutChild()

    Layout child in Tab and it can be override by user.

    Declaration
    protected virtual void LayoutChild()
    View Source

    OnUpdate()

    Update Tab.

    Declaration
    protected override void OnUpdate()
    Overrides
    Control.OnUpdate()

    Events

    View Source

    ItemChangedEvent

    An event for the item changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.

    Declaration
    public event EventHandler<Tab.ItemChangedEventArgs> ItemChangedEvent
    Event Type
    Type Description
    EventHandler<><ItemChangedEventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX