Class Control

    Definition

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

    The control component is base class of tv nui components. It's abstract class, so can't instantiate and can only be inherited.

    public class Control : VisualView, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    Derived
    AlertDialog
    AlertDialog
    AppBar
    AppBar
    Button
    Button
    DatePicker
    DatePicker
    Dialog
    Dialog
    FlexibleView
    FlexibleView
    Loading
    Loading
    Menu
    Menu
    Navigator
    Navigator
    Page
    Page
    Pagination
    Pagination
    Picker
    Picker
    Popup
    Popup
    Progress
    Progress
    RecyclerViewItem
    RecyclerViewItem
    ScrollableBase
    ScrollableBase
    ScrollBar
    ScrollBar
    ScrollbarBase
    ScrollbarBase
    Slider
    Slider
    Tab
    Tab
    TabBar
    TabBar
    TabContent
    TabContent
    TabView
    TabView
    TimePicker
    TimePicker
    Toast
    Toast
    CircularPagination
    CircularPagination
    CircularProgress
    CircularProgress
    CircularSlider
    CircularSlider
    Popup
    Popup
    RecycleItem
    RecycleItem
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    Control()

    Construct an empty Control.

    Declaration
    public Control()
    View Source

    Control(string)

    Construct with style name

    Declaration
    public Control(string styleName)
    Parameters
    Type Name Description
    string styleName

    The name of style in the current theme to be applied

    View Source

    Control(ControlStyle)

    Construct with style.

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

    Create control with style.

    Fields

    View Source

    CommandParameterProperty

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

    CommandProperty

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

    FeedbackProperty

    FeedbackProperty

    Declaration
    public static readonly BindableProperty FeedbackProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    Command

    Declaration
    public ICommand Command { get; set; }
    Property Value
    Type Description
    ICommand
    View Source

    CommandParameter

    Declaration
    public object CommandParameter { get; set; }
    Property Value
    Type Description
    object
    View Source

    Feedback

    Enable/Disable a sound feedback when tap gesture detected.

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

    Methods

    View Source

    CreateViewStyle()

    Declaration
    protected override ViewStyle CreateViewStyle()
    Returns
    Type Description
    ViewStyle
    Overrides
    View.CreateViewStyle()
    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
    ViewWrapper.Dispose(DisposeTypes)
    View Source

    OnFocusGained()

    Called when the control gain key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is gained.

    Declaration
    public override void OnFocusGained()
    Overrides
    CustomView.OnFocusGained()
    View Source

    OnFocusLost()

    Called when the control loses key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is lost.

    Declaration
    public override void OnFocusLost()
    Overrides
    CustomView.OnFocusLost()
    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
    VisualView.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
    CustomView.OnKey(Key)
    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
    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
    VisualView.OnRelayout(Vector2, RelayoutContainer)
    View Source

    OnThemeChanged(object, ThemeChangedEventArgs)

    Declaration
    protected override void OnThemeChanged(object sender, ThemeChangedEventArgs e)
    Parameters
    Type Name Description
    object sender
    ThemeChangedEventArgs e
    Overrides
    View.OnThemeChanged(object, ThemeChangedEventArgs)
    View Source

    OnThemeChangedEvent(object, ThemeChangeEventArgs)

    Theme change callback when theme is changed, this callback will be trigger. Note that it is deprecated API.Please use OnThemeChanged instead.

    Declaration
    protected virtual void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
    Parameters
    Type Name Description
    object sender

    The sender

    StyleManager.ThemeChangeEventArgs e

    The event data

    View Source

    OnUpdate()

    Update by style.

    Declaration
    protected virtual void OnUpdate()
    View Source

    PassFocusableViewInsideIfNeeded()

    when the derived class of Control is used as container and itself is not Focusable, this can be used when calling SetCurrentFocusView() this can return Focusable View inside of itself. this can be utilized when default algorithm is enabled and when the case of setting first key focus in container.

    Declaration
    protected virtual View PassFocusableViewInsideIfNeeded()
    Returns
    Type Description
    View

    Focusable View inside of container

    View Source

    Preload()

    This is used to improve theme performance.

    Declaration
    public static void Preload()

    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