<?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 Re: esri feature data grid and esri legend in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470420#M2339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;François,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange. I tweaked the Legend sample in the interactiveSDK to set a French display name for the local dynamic map service layer and I didn't notice any issue:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="LegendLocalization.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/50478_LegendLocalization.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested by setting the DisplayName in XAML and in C#. Both work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: In you sample I don't get what is 'ArcGISLocalDymanicMapService'? Shouldn't be 'ArcGISLocalDymanicMapServiceLayer'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Dominique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2015 19:27:37 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2015-01-12T19:27:37Z</dc:date>
    <item>
      <title>esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470415#M2334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a simple question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developing ArcGIS runtime for WPF v 10.2.3 and I want to set the language display to French for my esri:legend and esri:featuredatagrid control. How can this be done. I am currently not able to set the layer name in French for instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francois&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 16:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470415#M2334</guid>
      <dc:creator>FrancoisGilbert</dc:creator>
      <dc:date>2015-01-09T16:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470416#M2335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the most part, you just need to set the culture to "fr". &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.CurrentThread.CurrentCulture = new CultureInfo("fr");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For updating the controls to be localized, you can refer to this blog post: &lt;A href="http://blogs.esri.com/esri/arcgis/2010/05/28/localizing-arcgis-controls/" title="http://blogs.esri.com/esri/arcgis/2010/05/28/localizing-arcgis-controls/"&gt;Localizing ArcGIS Silverlight/WPF controls | ArcGIS Blog&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jennifer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jan 2015 01:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470416#M2335</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2015-01-10T01:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470417#M2336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have set the CurrentCulture to French and my WPF application (ESRI:legend) still does not display the French character. Do I have to set something in the XAML code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Francois&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 15:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470417#M2336</guid>
      <dc:creator>FrancoisGilbert</dc:creator>
      <dc:date>2015-01-12T15:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470418#M2337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="n"&gt;The WPF controls localization is not driven by the current culture but by the language property of the controls.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;As noticed by Jennifer, a WPF application that wants to use by default the user&amp;nbsp; current culture can execute this code at startup of the application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN class="n"&gt;FrameworkElement&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;LanguageProperty&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;OverrideMetadata&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="k"&gt;typeof&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;FrameworkElement&lt;/SPAN&gt;&lt;SPAN class="p"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k"&gt;new&lt;/SPAN&gt; &lt;SPAN class="nf"&gt;FrameworkPropertyMetadata&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;XmlLanguage&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;GetLanguage&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;CultureInfo&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;CurrentCulture&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;IetfLanguageTag&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)));&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That will set correctly the language property of all controls instantiated in your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, despite, this setup some strings won't be automatically localized:&lt;/P&gt;&lt;P&gt;&amp;nbsp; - strings defined in XAML (for example "ClearSelection" or "Switch Selection" in FeatureDataGrid): the localization must be done by creating a custom template with the strings translated.&lt;/P&gt;&lt;P&gt;&amp;nbsp; - strings coming from the data or from the service: the localization must be done at server side (for example what you mean by 'I am currently not able to set the layer name in French for instance' ?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 16:13:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470418#M2337</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2015-01-12T16:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470419#M2338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dominique,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I start my WPF application, I load 2 map packages. The app reads from an.ini file the name of the map package which becomes the name of the layer in the ESRI:legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim oDynamicLayer as ArcGISLocalDymanicMapService&lt;/P&gt;&lt;P&gt;oDynamicLayer.DisplayName= "Météo"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The character "é" is not displayed in my legend control. If I use an English name, I have no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;François&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 17:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470419#M2338</guid>
      <dc:creator>FrancoisGilbert</dc:creator>
      <dc:date>2015-01-12T17:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470420#M2339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;François,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange. I tweaked the Legend sample in the interactiveSDK to set a French display name for the local dynamic map service layer and I didn't notice any issue:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="LegendLocalization.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/50478_LegendLocalization.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested by setting the DisplayName in XAML and in C#. Both work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: In you sample I don't get what is 'ArcGISLocalDymanicMapService'? Shouldn't be 'ArcGISLocalDymanicMapServiceLayer'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Dominique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 19:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470420#M2339</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2015-01-12T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470421#M2340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dominique,&lt;/P&gt;&lt;P&gt;I am sorry the copy paste did not work on Iexplorer. I switched to FireFox. The good piece of code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oDynamicLayer As New ArcGISLocalDynamicMapServiceLayer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oDynamicLayer.DisplayName = "Météo"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;_________________________________________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add a graphic layer called "sélection", it is working well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_SelectionGraphicslayer.DisplayName = "Sélection"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_SelectionGraphicslayer.Opacity = 1.0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_SelectionGraphicslayer.IsHitTestVisible = True&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;_SelectionGraphicslayer.ShowLegend = True&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MyMap.Layers().Add(_SelectionGraphicslayer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add the local map service, the french title does not display well. Both type of layer are using the same XAML format for the legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dim oDynamicLayer As New ArcGISLocalDynamicMapServiceLayer&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oDynamicLayer.ID = MyMap.Layers.Count - 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oDynamicLayer.Path = sUrl&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oDynamicLayer.DisplayName = ''Système hydrique''&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oDynamicLayer.Opacity = dOpacity&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AddHandler oDynamicLayer.Initialized, AddressOf ArcGISLocalDynamicMapServiceLayer_Initialized&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AddHandler oDynamicLayer.InitializationFailed, AddressOf ArcGISLocalDynamicMapServiceLayer_InitializationFailed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;MyMap.Layers().Add(oDynamicLayer)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/50576_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 20:19:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470421#M2340</guid>
      <dc:creator>FrancoisGilbert</dc:creator>
      <dc:date>2015-01-12T20:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: esri feature data grid and esri legend</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470422#M2341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was reading the name of the layer in a text file and that file was not encoded to support the french character. The problem was in the ini file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 14:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/esri-feature-data-grid-and-esri-legend/m-p/470422#M2341</guid>
      <dc:creator>FrancoisGilbert</dc:creator>
      <dc:date>2015-01-23T14:31:44Z</dc:date>
    </item>
  </channel>
</rss>

