public Task<bool> ActivateMapPageAsync()
Public Function ActivateMapPageAsync() As Task(Of Boolean)
Return Value
A flag indicating whether the map is activated
public Task<bool> ActivateMapPageAsync()
Public Function ActivateMapPageAsync() As Task(Of Boolean)
{
// Note: we are on the UI thread!
// A presentation view must be active
if (PresentationView.Active == null)
{
return;
}
PresentationPage currentActivePage = activePresentationView.ActivePage;
//check if the current page is a map page
if (activePage is MapPresentationPage)
{
await activePresentationView.ActivateMapPageAsync();
}
await QueuedTask.Run(() =>
{
// TODO
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)