Class TabContent

    Definition

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

    TabContent is a class which contains a set of Views and has one of them selected.

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

    Constructors

    View Source

    TabContent()

    Creates a new instance of TabContent.

    Declaration
    public TabContent()
    View Source

    TabContent(string)

    Creates a new instance of TabContent with style.

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

    Creates TabContent by special style defined in UX.

    View Source

    TabContent(ControlStyle)

    Creates a new instance of a TabContent with style.

    Declaration
    public TabContent(ControlStyle style)
    Parameters
    Type Name Description
    ControlStyle style

    A style applied to the newly created TabContent.

    Properties

    View Source

    SelectedIndex

    The index of the selected view. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.

    Declaration
    protected int SelectedIndex { get; set; }
    Property Value
    Type Description
    int
    View Source

    ViewCount

    Gets the count of views.

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

    Views

    A list of content views.

    Declaration
    protected IList<View> Views { get; }
    Property Value
    Type Description
    IList<><View>

    Methods

    View Source

    AddView(View)

    Adds a view to TabContent.

    Declaration
    protected virtual void AddView(View view)
    Parameters
    Type Name Description
    View view

    A view to be added to TabContent.

    View Source

    Dispose(DisposeTypes)

    Dispose Control 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

    GetView(int)

    Gets the view at the specified index of TabContent. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.

    Declaration
    public View GetView(int index)
    Parameters
    Type Name Description
    int index

    The index of a view in TabContent where the specified view exists.

    Returns
    Type Description
    View
    View Source

    OnInitialize()

    Overrides the parent method. This method is called by the framework when the instance is created.

    Declaration
    public override void OnInitialize()
    Overrides
    Control.OnInitialize()
    View Source

    RemoveView(View)

    Removes a view from TabContent.

    Declaration
    protected virtual void RemoveView(View view)
    Parameters
    Type Name Description
    View view

    A view to be removed from TabContent.

    View Source

    SelectView(int)

    Selects a view at the specified index of TabContent. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.

    Declaration
    protected virtual void SelectView(int index)
    Parameters
    Type Name Description
    int index

    The index of a view in TabContent where the view will be selected.

    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