Class BindingExtensions

    Definition

    Namespace:
    Tizen.NUI.Binding
    Assembly:
    Tizen.NUI.dll

    Provides extension methods for binding properties of a view model to a view.

    public static class BindingExtensions
    Inheritance
    object
    BindingExtensions

    Methods

    View Source

    BindingSession<TViewModel>(View)

    Gets the binding session for the specified view.

    Declaration
    public static BindingSession<TViewModel> BindingSession<TViewModel>(this View view)
    Parameters
    Type Name Description
    View view

    The view.

    Returns
    Type Description
    BindingSession<TViewModel>

    The binding session.

    Type Parameters
    Name Description
    TViewModel

    The type of the view model.

    View Source

    BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)

    Sets the binding session for the specified view.

    Declaration
    public static T BindingSession<T, TViewModel>(this T view, BindingSession<TViewModel> session) where T : View
    Parameters
    Type Name Description
    T view

    The view.

    BindingSession<TViewModel> session

    The binding session.

    Returns
    Type Description
    T

    The view.

    Type Parameters
    Name Description
    T

    The type of the view model.

    TViewModel

    The type of the view.

    View Source

    SetBinding<T>(View, BindingSession<T>, Action<T>, string)

    Sets the binding for the specified view model property.

    Declaration
    public static View SetBinding<T>(this View view, BindingSession<T> vm, Action<T> set, string path)
    Parameters
    Type Name Description
    View view

    The view to bind to.

    BindingSession<T> vm

    The view model to bind from.

    Action<><T> set

    The action to set the view property.

    string path

    The path of the view model property.

    Returns
    Type Description
    View

    The view.

    Type Parameters
    Name Description
    T

    The type of the view model.

    View Source

    SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)

    Sets the binding for the specified view model property.

    Declaration
    public static View SetBinding<TViewModel>(this View view, BindingSession<TViewModel> session, string targetPath, string srcPath)
    Parameters
    Type Name Description
    View view

    The view to bind to.

    BindingSession<TViewModel> session

    The binding session.

    string targetPath

    The path of the view property.

    string srcPath

    The path of the view model property.

    Returns
    Type Description
    View

    The view.

    Type Parameters
    Name Description
    TViewModel

    The type of the view model.

    View Source

    SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)

    Sets the binding for the specified view model property.

    Declaration
    public static TView SetBinding<T, TView>(this TView view, BindingSession<T> vm, Action<T, TView> set, string path) where TView : View
    Parameters
    Type Name Description
    TView view

    The view to bind to.

    BindingSession<T> vm

    The view model to bind from.

    Action<, ><T, TView> set

    The action to set the view property.

    string path

    The path of the view model property.

    Returns
    Type Description
    TView

    The view.

    Type Parameters
    Name Description
    T

    The type of the view model.

    TView

    The type of the view.

    View Source

    SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)

    Sets the binding for the specified view model property.

    Declaration
    public static TView SetBinding<TView, TViewModel, TProperty>(this TView view, BindingSession<TViewModel> session, BindingProperty<TView, TProperty> property, string path) where TView : View
    Parameters
    Type Name Description
    TView view

    The view to bind to.

    BindingSession<TViewModel> session

    The binding session.

    BindingProperty<TView, TProperty> property

    The view property.

    string path

    The path of the view model property.

    Returns
    Type Description
    TView

    The view.

    Type Parameters
    Name Description
    TView

    The type of the view.

    TViewModel

    The type of the view model.

    TProperty

    The type of the view property.

    View Source

    SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)

    Sets the two-way binding for the specified view model property.

    Declaration
    public static View SetTwoWayBinding<TViewModel, TProperty>(this View view, BindingSession<TViewModel> session, TwoWayBindingProperty<View, TProperty> property, string path)
    Parameters
    Type Name Description
    View view

    The view to bind to.

    BindingSession<TViewModel> session

    The binding session.

    TwoWayBindingProperty<View, TProperty> property

    The view property.

    string path

    The path of the view model property.

    Returns
    Type Description
    View

    The view.

    Type Parameters
    Name Description
    TViewModel

    The type of the view model.

    TProperty

    The type of the view property.

    View Source

    SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)

    Sets the two-way binding for the specified view model property.

    Declaration
    public static TView SetTwoWayBinding<TView, TViewModel, TProperty>(this TView view, BindingSession<TViewModel> session, TwoWayBindingProperty<TView, TProperty> property, string path) where TView : View
    Parameters
    Type Name Description
    TView view

    The to.

    BindingSession<TViewModel> session

    The binding session.

    TwoWayBindingProperty<TView, TProperty> property

    The view property.

    string path

    The path of the view model property.

    Returns
    Type Description
    TView

    The view.

    Type Parameters
    Name Description
    TView

    The type of the view.

    TViewModel

    The type of the view model.

    TProperty

    The type of the view property.

    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX