Hi , i would like to set UniqueValueRenderer by code , to create a thematic map on a layer dinamically. I tried to do this .... non errors but no result on map. Please help me to find be the mistake 🙂 thank u GP
I think what Dominique is trying to say is after this line does
LayoutRoot.Resources["MyRedFillSymbol"] as FillSymbol;
return a symbol or null?
Most likely, you have Grid x:Name="LayoutRoot" and in your code-snippet, the symbol resources are defined higher at the UserControl level, which means you might need to do the following instead:
uvi.Symbol = this.Resources["MyRedFillSymbol"] as FillSymbol;