Class CommandService
Encapsulates the command-related routine within a Telerik.XamarinForms.Input.MaskedInput instance.
Inherited Members
Namespace: Telerik.XamarinForms.Input.MaskedInput
Assembly: Telerik.XamarinForms.Input.dll
Syntax
public class CommandService : CommandServiceBase<MaskedInputElement>
Methods
CanExecuteCommand(MaskedInputCommandId, Object)
Determines whether the command, associated with the specified Id can be executed given the parameter provided.
Declaration
public bool CanExecuteCommand(MaskedInputCommandId id, object parameter)
Parameters
MaskedInputCommandId
id
The MaskedInputCommandId value to look for. |
System.Object
parameter
The parameter that is passed to the CanExecute and Execute methods of the command. |
Returns
System.Boolean
True if the command can be executed, false otherwise. |
ExecuteCommand(MaskedInputCommandId, Object)
Attempts to find the command, associated with the specified Id and to perform its Execute routine, using the provided parameter.
Declaration
public bool ExecuteCommand(MaskedInputCommandId id, object parameter)
Parameters
MaskedInputCommandId
id
The MaskedInputCommandId value to look for. |
System.Object
parameter
The parameter that is passed to the CanExecute and Execute methods of the command. |
Returns
System.Boolean
True if the command is successfully executed, false otherwise. |