You can instantiate a simple renderer and set the symbol property to the graphic symbol.Then by calling QueryLegendInfos on this renderer, you will get the imagesource as a property of the legendItemInfo (only one legenditeminfo is returned by a simple renderer)
Error HRESULT E_FAIL has been returned from a call to a COM component.
Dim sr As New SimpleRenderer With {.Symbol = CType(App.Current.Resources("AutoSymbol"), MarkerSymbol)} 'Renderer instantiates fine, with a valid symbol. sr.QueryLegendInfos(AddressOf WTF, Nothing) 'Error Here Private Sub WTF(d As LayerLegendInfo) 'Do Something End Sub
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.