MapLayer.AddChild Method (UIElement, Location)

This documentation is no longer available on MSDN, however it is available as a CHM download.

Adds a UIElement to the map layer at the specified location.

Namespace: Microsoft.Maps.MapControl
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)

Usage

Syntax

'Declaration
<ScriptableMemberAttribute> _
Public Overrides Sub AddChild ( _
    element As UIElement, _
    location As Location _
)
[ScriptableMemberAttribute] 
public override void AddChild (
    UIElement element,
    Location location
)
[ScriptableMemberAttribute] 
public:
virtual void AddChild (
    UIElement^ element, 
    Location^ location
) override
/** @attribute ScriptableMemberAttribute() */ 
public void AddChild (
    UIElement element, 
    Location location
)
ScriptableMemberAttribute 
public override function AddChild (
    element : UIElement, 
    location : Location
)

Parameters

  • element
    The UIElement to add.
  • location
    The location at which to add the UIElement.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

See Also

Reference

MapLayer Class
MapLayer Members
Microsoft.Maps.MapControl Namespace

Other Resources

Adding Shapes to the Map
Adding Media to the Map
Adding Tile Overlays to the Map
Adding Shapes to the Map
Adding Media to the Map
Adding Tile Overlays to the Map