I'd like to also bind Layer.Description or Description (see my xaml).None of these work. I also notice that Description is never populated.I see it in the arcgis/rest/services reference but this does not get populated..
Note: I was debugging the legend refresh event handler and perusing the e.LayerItemto try and find Description with my value....Do you know if this is available via the Object Model?
string[] layerIDs = { "wellsgeneral", "bitatg", "completion", "onetrax", "dandm", "dtandr" };this.googWellLayerList.LayerIDs = layerIDs;this.googWellLayerList.Refreshed += new EventHandler<Legend.RefreshedEventArgs>(googWellLayerList_Refreshed);this.googWellLayerList.Refresh();
<CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" Checked="CheckBox_Checked" />
I'd like to give them some nice display names without messing with the binding behavior....
Unable to cast object of type 'Microsoft.Expression,DesignModel,DocumentModel.DocumentPrimitiveNode to typeMicrosoft.Expression.DesignModel,DocumentModel.DocumentCompositeNode'.The sample you specified lists layer ids this way. What can I do to fix this?
I changed it to if (layerItemVM.Label.ToUpper().Contains("LABEL"))removeLayerItemVM = layerItemVM;Is this correct?
if (e.LayerItem.LayerItems != null) { var toDelete = e.LayerItem.LayerItems.Where(item => item.Label.ToUpper().Contains("LABEL")).ToList(); foreach (var item in toDelete) e.LayerItem.LayerItems.Remove(item); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.