MapLayer.AddChild Method (UIElement, Location, PositionOrigin)
Adds a UIElement to the map layer at the specified location using the given position origin.
Namespace: Microsoft.Maps.MapControl.WPF
Assembly: Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF.dll)
Syntax
public void AddChild(
UIElement element,
Location location,
PositionOrigin origin
)
public:
void AddChild(
UIElement^ element,
Location^ location,
PositionOrigin origin
)
member AddChild :
element:UIElement *
location:Location *
origin:PositionOrigin -> unit
Public Sub AddChild (
element As UIElement,
location As Location,
origin As PositionOrigin
)
Parameters
element
Type: System.Windows.UIElementThe UIElement to add.
location
Type: Microsoft.Maps.MapControl.WPF.LocationThe location at which to add the UIElement.
origin
Type: Microsoft.Maps.MapControl.WPF.PositionOriginThe position origin to use.
See Also
AddChild Overload
MapLayer Class
Microsoft.Maps.MapControl.WPF Namespace
Return to top