<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic View feature symbol in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87814#M921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like a simple operation, but I just can't put the pieces together. I'm trying to view the symbol (it happens to be a simple fill symbol) associated with a feature (it happens to use unique value symbology). In other words, I want to construct a UniqueValueRenderer that will tell me what the symbology of this feature is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 05:41:06 GMT</pubDate>
    <dc:creator>BillKorbholz</dc:creator>
    <dc:date>2015-01-05T05:41:06Z</dc:date>
    <item>
      <title>View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87814#M921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like a simple operation, but I just can't put the pieces together. I'm trying to view the symbol (it happens to be a simple fill symbol) associated with a feature (it happens to use unique value symbology). In other words, I want to construct a UniqueValueRenderer that will tell me what the symbology of this feature is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 05:41:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87814#M921</guid>
      <dc:creator>BillKorbholz</dc:creator>
      <dc:date>2015-01-05T05:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87815#M922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to mention the environment: ArcGIS 10.3 with .Net SDK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 16:28:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87815#M922</guid>
      <dc:creator>BillKorbholz</dc:creator>
      <dc:date>2015-01-05T16:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87816#M923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the scenario you can use create &lt;A href="https://developers.arcgis.com/net/desktop/api-reference//html/Overload_Esri_ArcGISRuntime_Symbology_Symbol_CreateSwatchAsync.htm"&gt;Swatches&lt;/A&gt;‌ from the symbol to create image from it (provide geometry type as a parameter) or check &lt;A href="https://github.com/Esri/arcgis-toolkit-dotnet/tree/master/samples/WinDesktop/ArcGISRuntime.Toolkit.Samples/Legend"&gt;Legend &lt;/A&gt;‌and &lt;A href="https://github.com/Esri/arcgis-toolkit-dotnet/tree/master/samples/WinDesktop/ArcGISRuntime.Toolkit.Samples/SymbolDisplay"&gt;SymbolDisplay&lt;/A&gt;‌ controls. If you can tell me a bit more on the scenario, i might be able to help a bit more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 15:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87816#M923</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2015-01-06T15:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87817#M924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the feature into the renderer to get the symbol. Ex:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Symbol symbol = myUniqueValueRenderer.GetSymbol(myFeature);
&amp;nbsp;&amp;nbsp;&amp;nbsp; ImageSource swatch = await symbol.CreateSwatchAsync();&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87817#M924</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-12-10T23:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87818#M925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply, Morten. But here is my basic problem: I don't know how to create the unique value renderer in the first place. If I could do that, then getting the symbol would be quite straightforward. There has to be some combination of casts that will allow me to create a UVR for this feature set. Or maybe you're suggesting that I use something like a static UVR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 02:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87818#M925</guid>
      <dc:creator>BillKorbholz</dc:creator>
      <dc:date>2015-01-08T02:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87819#M926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a &lt;A href="https://github.com/Esri/arcgis-runtime-samples-dotnet/blob/master/src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/Symbology/UniqueValueRendererSample.xaml.cs"&gt;UniqueValueRenderer sample &lt;/A&gt;in the SDK that demonstrates how to build a UniqueValueRenderer by code.&lt;/P&gt;&lt;P&gt;Basically:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - instantiate a UniqueValueRenderer object&lt;/P&gt;&lt;P&gt;&amp;nbsp; - set the Fields collection with the fields that participate to the renderer&lt;/P&gt;&lt;P&gt;&amp;nbsp; - set the Infos collection with the set of { values, symbol} &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 08:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87819#M926</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2015-01-08T08:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87820#M927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying, Dominique. I don't think I've been clear regarding what I want to do. I want to see what the current symbol is associated with a feature. I don't want to change it. So I can't follow the SDK example, since it requires me to know the symbol associated with each value. That is exactly what I am trying to discover.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the ArcMap user interface, I can see each symbol associated with each value of my feature set. I just want to do the same in code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 23:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87820#M927</guid>
      <dc:creator>BillKorbholz</dc:creator>
      <dc:date>2015-01-08T23:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87821#M928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone who tried to help me with this. I finally stumbled over what I needed. VB.Net code fragment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim pLayer As ESRI.ArcGIS.Carto.ILayer&lt;/P&gt;&lt;P&gt;Dim pFeatureLayer As ESRI.ArcGIS.Carto.IFeatureLayer&lt;/P&gt;&lt;P&gt;Dim pGFL As ESRI.ArcGIS.Carto.IGeoFeatureLayer ' This was the missing piece&lt;/P&gt;&lt;P&gt;Dim pUniqueRenderer As ESRI.ArcGIS.Carto.IUniqueValueRenderer&lt;/P&gt;&lt;P&gt;Dim pSymbol as ESRI.ArcGIS.Display.ISymbol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pLayer = ...&lt;/P&gt;&lt;P&gt;pFeatureLayer = pLayer&lt;/P&gt;&lt;P&gt;pGFL = pFeatureLayer&lt;/P&gt;&lt;P&gt;pUniqueRenderer = pGFL.Renderer&lt;/P&gt;&lt;P&gt;pSymbol = pUniqueRenderer.Symbol(pUniqueRenderer.Value(n))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 18:48:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87821#M928</guid>
      <dc:creator>BillKorbholz</dc:creator>
      <dc:date>2015-01-16T18:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: View feature symbol</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87822#M929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note: The above code is for ArcObjects, and not code for the ArcGIS Runtime .NET SDK - that probably explains a lot of the confusion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 22:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/view-feature-symbol/m-p/87822#M929</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2015-01-16T22:05:24Z</dc:date>
    </item>
  </channel>
</rss>

