Class TabButton

    Definition

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

    TabButton is a class which is used for selecting one content in a TabView.

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

    Constructors

    View Source

    TabButton()

    Creates a new instance of TabButton.

    Declaration
    public TabButton()
    View Source

    TabButton(string)

    Creates a new instance of TabButton.

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

    Creates TabButton by special style defined in UX.

    View Source

    TabButton(TabButtonStyle)

    Creates a new instance of TabButton.

    Declaration
    public TabButton(TabButtonStyle tabButtonStyle)
    Parameters
    Type Name Description
    TabButtonStyle tabButtonStyle

    Creates TabButton by style customized by user.

    Properties

    View Source

    IconURL

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

    Text

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Methods

    View Source

    ApplyStyle(ViewStyle)

    Apply style to button.

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

    The style to apply.

    Overrides
    Button.ApplyStyle(ViewStyle)
    View Source

    CreateViewStyle()

    Gets TabButton style.

    Declaration
    protected override ViewStyle CreateViewStyle()
    Returns
    Type Description
    ViewStyle

    The default TabButton style.

    Overrides
    Button.CreateViewStyle()
    View Source

    Dispose(DisposeTypes)

    Dispose SelectButton and all children on it.

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

    Dispose type.

    Overrides
    SelectButton.Dispose(DisposeTypes)
    View Source

    HandleControlStateOnTouch(Touch)

    The touch event handler for ControlState. Please change ControlState value by touch state if needed.

    Declaration
    protected override bool HandleControlStateOnTouch(Touch touch)
    Parameters
    Type Name Description
    Touch touch
    Returns
    Type Description
    bool
    Overrides
    SelectButton.HandleControlStateOnTouch(Touch)
    View Source

    LayoutItems()

    Put sub items (e.g. buttonText, buttonIcon) to the right place.

    Declaration
    protected override void LayoutItems()
    Overrides
    Button.LayoutItems()
    View Source

    OnControlStateChanged(ControlStateChangedEventArgs)

    Called after the View's ControlStates changed.

    Declaration
    protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
    Parameters
    Type Name Description
    View.ControlStateChangedEventArgs controlStateChangedInfo
    Overrides
    SelectButton.OnControlStateChanged(View.ControlStateChangedEventArgs)
    View Source

    OnInitialize()

    Initializes AT-SPI object.

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

    OnKey(Key)

    Called after a key event is received by the view that has had its focus set.

    Declaration
    public override bool OnKey(Key key)
    Parameters
    Type Name Description
    Key key

    The key event.

    Returns
    Type Description
    bool

    True if the key event should be consumed.

    Overrides
    SelectButton.OnKey(Key)

    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