I created a frame inside of a dockpane and created the map but I could not figure out how to place the map inside the frame I created.
<SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"><SPAN style="color: #000000;">XAML:</SPAN>
<SPAN style="color: #000000;"> <Frame x:Name="InsetMapFrame" HorizontalAlignment="Left" Margin="5,5,0,0" </SPAN>
<SPAN style="color: #000000;"> VerticalAlignment="Top" Height="100" Width="278"/></SPAN>
</SPAN><SPAN style="color: #000000;"><SPAN class="" style="border: 0px; font-weight: inherit;">C#:
public void AddMap2()</SPAN><SPAN class="" style="border: 0px; font-weight: inherit;">
{
QueuedTask.Run(() =>
{
var newProject = Project.Current;
if (newProject != null)
{
var map = MapFactory.Instance.CreateMap("Kentucky", MapType.Map,
MapViewingMode.Map, Basemap.Hybrid);
System.Uri uri = new System.Uri(map.URI);
InsetMapFrame.Source = uri;
}
});
</SPAN><SPAN class="" style="border: 0px; font-weight: inherit;"> }</SPAN></SPAN><SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;">
</SPAN>