MapElementsLayer MapElementsLayer MapElementsLayer MapElementsLayer Class

Definition

Represents a collection of map elements to which you can bind data and manipulate independently of other map elements.

public : sealed class MapElementsLayer : MapLayer, IMapElementsLayer
struct winrt::Windows::UI::Xaml::Controls::Maps::MapElementsLayer : MapLayer, IMapElementsLayer
public sealed class MapElementsLayer : MapLayer, IMapElementsLayer
Public NotInheritable Class MapElementsLayer Inherits MapLayer Implements IMapElementsLayer
Inheritance
MapElementsLayerMapElementsLayerMapElementsLayerMapElementsLayer
Attributes
Windows 10 requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Constructors

MapElementsLayer() MapElementsLayer() MapElementsLayer() MapElementsLayer()

Creates a MapElementsLayer instance.

public : MapElementsLayer()
MapElementsLayer() const;
public MapElementsLayer()
Public Sub New()

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.

(Inherited from DependencyObject)

MapElements MapElements MapElements MapElements

Gets the collection of MapElement objects that are children of the MapElementsLayer.

public : IVector<MapElement> MapElements { get; set; }
IVector<MapElement> MapElements(); void MapElements(IVector<MapElement> mapelements);
public IList<MapElement> MapElements { get; set; }
Public ReadWrite Property MapElements As IList<MapElement>
Value
IList<MapElement> IList<MapElement>

The collection of MapElement objects that are children of the MapElementsLayer.

MapElementsProperty MapElementsProperty MapElementsProperty MapElementsProperty

Identifies the MapElements dependency property.

public : static DependencyProperty MapElementsProperty { get; }
static DependencyProperty MapElementsProperty();
public static DependencyProperty MapElementsProperty { get; }
Public Static ReadOnly Property MapElementsProperty As DependencyProperty
Value
DependencyProperty DependencyProperty

The MapElements dependency property.

MapTabIndex MapTabIndex MapTabIndex MapTabIndex

Gets or sets a value that determines the order in which objects of the MapLayer receive focus when the user navigates through those elements by pressing the Tab key.

(Inherited from MapLayer)

MapTabIndexProperty MapTabIndexProperty MapTabIndexProperty MapTabIndexProperty

Identifies the MapTagIndex dependency property.

(Inherited from MapLayer)

Visible Visible Visible Visible

Gets or sets a value that indicates whether the MapLayer is visible on the MapControl.

(Inherited from MapLayer)

VisibleProperty VisibleProperty VisibleProperty VisibleProperty

Identifies the Visible dependency property.

(Inherited from MapLayer)

ZIndex ZIndex ZIndex ZIndex

Gets or sets the z-index of the MapLayer. A MapLayer with a higher z-index is displayed on top of a MapLayer with a lower z-index.

(Inherited from MapLayer)

ZIndexProperty ZIndexProperty ZIndexProperty ZIndexProperty

Identifies the ZIndex dependency property.

(Inherited from MapLayer)

Events

MapContextRequested MapContextRequested MapContextRequested MapContextRequested

Occurs when the user has completed a context input gesture on a map layer, such as a right-click.

public : event TypedEventHandler MapContextRequested<MapElementsLayer, MapElementsLayerContextRequestedEventArgs>
// Register
event_token MapContextRequested(TypedEventHandler<MapElementsLayer, MapElementsLayerContextRequestedEventArgs> const& handler) const;

// Revoke with event_token
void MapContextRequested(event_token const& cookie) const;

// Revoke with event_revoker
MapContextRequested_revoker MapContextRequested(auto_revoker_t, TypedEventHandler<MapElementsLayer, MapElementsLayerContextRequestedEventArgs> const& handler) const;
public event TypedEventHandler MapContextRequested<MapElementsLayer, MapElementsLayerContextRequestedEventArgs>
Public Event TypedEventHandler MapContextRequested( Of ( Of MapElementsLayer ), ( Of MapElementsLayerContextRequestedEventArgs ))

MapElementClick MapElementClick MapElementClick MapElementClick

Occurs when the user taps or clicks a MapElement that has been add to the MapElementsLayer.

public : event TypedEventHandler MapElementClick<MapElementsLayer, MapElementsLayerClickEventArgs>
// Register
event_token MapElementClick(TypedEventHandler<MapElementsLayer, MapElementsLayerClickEventArgs> const& handler) const;

// Revoke with event_token
void MapElementClick(event_token const& cookie) const;

// Revoke with event_revoker
MapElementClick_revoker MapElementClick(auto_revoker_t, TypedEventHandler<MapElementsLayer, MapElementsLayerClickEventArgs> const& handler) const;
public event TypedEventHandler MapElementClick<MapElementsLayer, MapElementsLayerClickEventArgs>
Public Event TypedEventHandler MapElementClick( Of ( Of MapElementsLayer ), ( Of MapElementsLayerClickEventArgs ))

Remarks

Touch, mouse, and pen/stylus interactions are received, processed, and managed as pointers. Any of these devices and their interactions can produce a MapElementsClick event. An instance of MapElementsLayerClickEventArgs provides data for this event.

MapElementPointerEntered MapElementPointerEntered MapElementPointerEntered MapElementPointerEntered

Occurs when a pointer moves into the bounding area of a MapElement on a MapElementsLayer.

public : event TypedEventHandler MapElementPointerEntered<MapElementsLayer, MapElementsLayerPointerEnteredEventArgs>
// Register
event_token MapElementPointerEntered(TypedEventHandler<MapElementsLayer, MapElementsLayerPointerEnteredEventArgs> const& handler) const;

// Revoke with event_token
void MapElementPointerEntered(event_token const& cookie) const;

// Revoke with event_revoker
MapElementPointerEntered_revoker MapElementPointerEntered(auto_revoker_t, TypedEventHandler<MapElementsLayer, MapElementsLayerPointerEnteredEventArgs> const& handler) const;
public event TypedEventHandler MapElementPointerEntered<MapElementsLayer, MapElementsLayerPointerEnteredEventArgs>
Public Event TypedEventHandler MapElementPointerEntered( Of ( Of MapElementsLayer ), ( Of MapElementsLayerPointerEnteredEventArgs ))

Remarks

Mouse interactions are received, processed, and managed as pointers. The MapElementPointerEntered event is triggered as the user moves their mouse over an element. An instance of MapElementsLayerPointerEnteredEventArgs provides data for this event.

MapElementPointerExited MapElementPointerExited MapElementPointerExited MapElementPointerExited

Occurs when a pointer moves out of the bounding area of a MapElement on a MapElementsLayer.

public : event TypedEventHandler MapElementPointerExited<MapElementsLayer, MapElementsLayerPointerExitedEventArgs>
// Register
event_token MapElementPointerExited(TypedEventHandler<MapElementsLayer, MapElementsLayerPointerExitedEventArgs> const& handler) const;

// Revoke with event_token
void MapElementPointerExited(event_token const& cookie) const;

// Revoke with event_revoker
MapElementPointerExited_revoker MapElementPointerExited(auto_revoker_t, TypedEventHandler<MapElementsLayer, MapElementsLayerPointerExitedEventArgs> const& handler) const;
public event TypedEventHandler MapElementPointerExited<MapElementsLayer, MapElementsLayerPointerExitedEventArgs>
Public Event TypedEventHandler MapElementPointerExited( Of ( Of MapElementsLayer ), ( Of MapElementsLayerPointerExitedEventArgs ))

Remarks

Mouse interactions are received, processed, and managed as pointers. The MapElementPointerExited event is triggered as the user moves their mouse out from over an element. An instance of MapElementsLayerPointerExitedEventArgs provides data for this event.

Methods

ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty) ClearValue(DependencyProperty)

Clears the local value of a dependency property.

(Inherited from DependencyObject)

GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty) GetAnimationBaseValue(DependencyProperty)

Returns any base value established for a dependency property, which would apply in cases where an animation is not active.

(Inherited from DependencyObject)

GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty) GetValue(DependencyProperty)

Returns the current effective value of a dependency property from a DependencyObject.

(Inherited from DependencyObject)

ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty) ReadLocalValue(DependencyProperty)

Returns the local value of a dependency property, if a local value is set.

(Inherited from DependencyObject)

RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback) RegisterPropertyChangedCallback(DependencyProperty,DependencyPropertyChangedCallback)

Registers a notification function for listening to changes to a specific DependencyProperty on this DependencyObject instance.

(Inherited from DependencyObject)

SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object) SetValue(DependencyProperty,Object)

Sets the local value of a dependency property on a DependencyObject.

(Inherited from DependencyObject)

UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64) UnregisterPropertyChangedCallback(DependencyProperty,Int64)

Cancels a change notification that was previously registered by calling RegisterPropertyChangedCallback.

(Inherited from DependencyObject)