menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MapLayerCommandBase - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MapLayerCommandBase

    Represents the MapLayerCommandBase. Inherits form System.Windows.Input.ICommand

    Inheritance
    System.Object
    MapLayerCommandBase
    PanCommand
    PanResetCommand
    ShapeFileRefreshCommand
    ShapeFileResetCommand
    ZoomInCommand
    ZoomOutCommand
    ZoomResetCommand
    Implements
    System.Windows.Input.ICommand
    Namespace: Syncfusion.UI.Xaml.Maps
    Assembly: Syncfusion.SfMaps.UWP.dll
    Syntax
    public abstract class MapLayerCommandBase : Object, ICommand
    Remarks

    MapLayerCommandBase is base class for all commands in the map. It is inherited from System.Windows.Input.ICommand.

    Constructors

    MapLayerCommandBase(SfMap)

    Initializes a new instance of the MapLayerCommandBase class.

    Declaration
    public MapLayerCommandBase(SfMap mapControl)
    Parameters
    Type Name Description
    SfMap mapControl

    SfMap which is having commands and its implementations.

    Remarks

    Initialize the MapControl property of the MapLayerCommandBase.

    Properties

    MapControl

    Gets the SfMap for the command.

    Declaration
    public SfMap MapControl { get; }
    Property Value
    Type Description
    SfMap

    Type :SfMapSfMap which is having Commands and its implementations

    Remarks

    This property is used to get the SfMap, which is having and implementations of the commands.

    Methods

    CanExecute(Object)

    Determines whether this Command can execute in its current state.

    Declaration
    public virtual bool CanExecute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    Type :System.Object

    object to determine can execute.

    Returns
    Type Description
    System.Boolean

    Type :System.Boolean

    true if the command can execute on the current command target; otherwise, false.

    Execute(Object)

    Executes the Command on the target.

    Declaration
    public abstract void Execute(object parameter)
    Parameters
    Type Name Description
    System.Object parameter

    Type :System.Object

    Parameter to be passed to the handler

    Events

    CanExecuteChanged

    Occurs when CanExecute value is changed.

    Declaration
    public event EventHandler CanExecuteChanged
    Event Type
    Type
    System.EventHandler
    Remarks

    This is the event handler to handle the execution when CanExecute value is changed.

    Implements

    System.Windows.Input.ICommand

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved