private void OpenPortalFeatureCollectionClick(object sender, RoutedEventArgs e)
{
// Get the portal item Id from the user
var collectionItemId = CollectionItemIdTextBox.Text.Trim();
// Make sure an Id was entered
if(string.IsNullOrEmpty(collectionItemId))
{
var messageDlg = new MessageDialog("Please enter a portal item ID", "Feature Collection ID");
messageDlg.ShowAsync();
return;
}
// Call a function to add the feature collection from the specified portal item
OpenFeaturesFromArcGISOnline(collectionItemId);
}
}