I am displaying several different types of MapElements on the UWP MapControl and regularly updating their position, size, etc. as the user works with the map. Currently I do all of this in code. I'd like to find a convenient way of binding multiple different collections of MapElements, as then I'd have less code to maintain.
With Creator's fall update 16299 Microsoft has added the MapElementsLayer class, and It appears to be perfect for the job, but I cannot get it to work. When I bind it to an ObservableCollection of MapElement3D I don't see any of them appear on the map. What am I doing wrong?
<Maps:MapControl
x:Name="MainMap"
MapProjection="Globe"
ZoomLevel="15.5"
<Maps:MapElementsLayer x:Name="Cars" MapElements="{x:Bind _VehicleCollection, Mode=OneWay}" />
</Maps:MapControl>