Class Command

    Definition

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

    Defines an ICommand implementation that wraps a Action.

    public class Command : ICommand
    Inheritance
    object
    Command
    Derived
    Command<T>
    Command<T>
    Command<T>

    Constructors

    View Source

    Command(Action, Func<bool>)

    Initializes a new instance of the Command class.

    Declaration
    public Command(Action execute, Func<bool> canExecute)
    Parameters
    Type Name Description
    Action execute

    An Action to execute when the Command is executed.

    Func<><bool> canExecute

    A instance indicating if the Command can be executed.

    View Source

    Command(Action)

    Initializes a new instance of the Command class.

    Declaration
    public Command(Action execute)
    Parameters
    Type Name Description
    Action execute

    An Action to execute when the Command is executed.

    View Source

    Command(Action<object>, Func<object, bool>)

    Initializes a new instance of the Command class.

    Declaration
    public Command(Action<object> execute, Func<object, bool> canExecute)
    Parameters
    Type Name Description
    Action<><object> execute

    An Action to execute when the Command is executed.

    Func<, ><object, bool> canExecute

    A instance indicating if the Command can be executed.

    View Source

    Command(Action<object>)

    Initializes a new instance of the Command class.

    Declaration
    public Command(Action<object> execute)
    Parameters
    Type Name Description
    Action<><object> execute

    An instance to execute when the Command is executed.

    Methods

    View Source

    CanExecute(object)

    Returns a Boolean indicating if the Command can be executed with the given parameter.

    Declaration
    public bool CanExecute(object parameter)
    Parameters
    Type Name Description
    object parameter

    An Object used as parameter to determine if the Command can be executed.

    Returns
    Type Description
    bool

    true if the Command can be executed, false otherwise.

    View Source

    ChangeCanExecute()

    Send a CanExecuteChanged.

    Declaration
    public void ChangeCanExecute()
    View Source

    Execute(object)

    Invokes the execute Action.

    Declaration
    public void Execute(object parameter)
    Parameters
    Type Name Description
    object parameter

    An Object used as parameter for the execute Action.

    Events

    View Source

    CanExecuteChanged

    Occurs when the target of the Command should reevaluate whether or not the Command can be executed.

    Declaration
    public event EventHandler CanExecuteChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    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