MapControl.Children Property

Definition

Gets the collection of objects that are children of the MapControl.

public:
 property IVector<DependencyObject ^> ^ Children { IVector<DependencyObject ^> ^ get(); };
IVector<DependencyObject> Children();
public IList<DependencyObject> Children { get; }
var iVector = mapControl.children;
Public ReadOnly Property Children As IList(Of DependencyObject)

Property Value

The collection of objects that are children of the MapControl.

Remarks

Display XAML user interface elements such as a Button, a HyperlinkButton, or a TextBlock by adding them as Children of the MapControl. You can also add them to the MapItemsControl, or bind the MapItemsControl to an item or a collection of items.

Alternately, to display pushpins, images, and shapes on the MapControl, add them to its MapElements collection.

For more info, see Display maps with 2D, 3D, and Streetside views.

Applies to

See also