private async void GetFeaturesFromQuery()
{
// Create a service feature table to get features from
ServiceFeatureTable featTable = new ServiceFeatureTable(new Uri(FeatureLayerUrl));
// Create a query to get all features in the table
QueryParameters queryParams = new QueryParameters();
queryParams.WhereClause = "1=1";
// Query the table to get all features
FeatureQueryResult featureResult = await featTable.QueryFeaturesAsync(queryParams);
// Create a new feature collection table from the result features
FeatureCollectionTable collectTable = new FeatureCollectionTable(featureResult);
// Create a feature collection and add the table
FeatureCollection featCollection = new FeatureCollection();
featCollection.Tables.Add(collectTable);
// Create a layer to display the feature collection, add it to the map's operational layers
FeatureCollectionLayer featCollectionTable = new FeatureCollectionLayer(featCollection);
MyMapView.Map.OperationalLayers.Add(featCollectionTable);
}
}