MapLayer.AddChild Method (UIElement, Location, PositionOrigin)

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 using the given position origin.

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

Usage

Syntax

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

Parameters

  • element
    The UIElement to add.
  • location
    The location at which to add the UIElement.
  • origin
    The position origin to use.

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