I want to be able to create a button that opens up two panes split as shown in the image below.
Currently, I use the following:
protected override async void OnClick()
{
Map map = null;
Map schema = null;
var mapProjectItems = Project.Current.GetItems<MapProjectItem>();
await QueuedTask.Run(() =>
{
if (mapProjectItems.Count() > 0)
{
var mapProjectItem = mapProjectItems.First();
var schemaProjectItem = mapProjectItems.Last();
map = mapProjectItem.GetMap();
ProApp.Panes.CreateMapPaneAsync(map);
schema = schemaProjectItem.GetMap();
ProApp.Panes.CreateMapPaneAsync(schema);
}
else
{
map = MapFactory.Instance.CreateMap("Local Map", MapType.Map, MapViewingMode.Map, Basemap.Terrain);
schema = MapFactory.Instance.CreateMap("Schema", MapType.Map, MapViewingMode.Map, Basemap.None);
}
});
}
But this opens two maps in two different views. How would I make it so it creates the two maps split horizontally or vertically as shown in the image?