New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a command abstraction that is associated with a particular RadMap instance.

Definition

Namespace:Telerik.Maui.Controls.Map

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public abstract class MapCommand : ICommand

Inheritance: objectMapCommand

Derived Classes: MapZoomInCommandMapZoomOutCommand

Implements: ICommand

Constructors

C#
protected MapCommand()

Properties

The RadMap instance that owns the command.

C#
public RadMap Map { get; }

Methods

C#
public virtual bool CanExecute(object parameter)
Parameters:parameterobjectReturns:

bool

Implements: ICommand.CanExecute(object)

C#
public abstract void Execute(object parameter)
Parameters:parameterobject

Implements: ICommand.Execute(object)

Invokes the CanExecute.

C#
public void RaiseCanExecuteChanged()

Events

Occurs when changes to the command source are detected.

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged