So our in house toolkit originally just supported one map, and the following example worked great:
<sdl:ViewToolbar x:Name="ViewToolbar" Map="{Binding ElementName=Map1}" />
But now, instead of the ViewToolbar having just a Map property, it has a Maps property, which is an ObservableCollection<Map> (could be any collection type really). So the control can now support working with multiple maps. I can set this Maps collection in the code behind, and it works, but I would like to set it in the XAML similar to the above example. I would like to do something like this:
<sdl:ViewToolbar x:Name="ViewToolbar">
<sdl:ViewToolbar.Maps>
<!-- How do I bind to multiple existing maps here? -->
</sdl:ViewToolbar.Maps>
</sdl:ViewToolbar>
Is this possible? Can I create a ObservableCollection resource or something and bind to that? Or do I have to do it in code?Thanks a lot for any help!