<?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: Issues with a XAML Label with hard coded text and a binding in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206711#M8661</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;thank you! lord have mercy. I checked several articles and I could have sworn I looked only at Labels. Maybe I need more sleep.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 12:55:46 GMT</pubDate>
    <dc:creator>AbelPerez</dc:creator>
    <dc:date>2022-08-26T12:55:46Z</dc:date>
    <item>
      <title>Issues with a XAML Label with hard coded text and a binding</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206571#M8657</link>
      <description>&lt;P&gt;Some of these things should be so simple but I end up spending days on it. Really frustrating.&amp;nbsp;&lt;BR /&gt;I looked up examples on how to set a label to hard coded text and a binding.&lt;BR /&gt;Something like "Airports found = 3".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried various ways to do this but all I get is just the number.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Label x:Name="lblAptCount" Content="{Binding Path=DvAirports.Count, StringFormat='Airports found = \{0\}'}"
       ToolTip="Number of airports found near origin airport" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="1.239,5.789" Margin="0,134,0,0" Width="207"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;When I use this XAML, the result in the label is just the number like 3.&lt;BR /&gt;Can anyone point me in the right direction please.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 22:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206571#M8657</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-08-25T22:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with a XAML Label with hard coded text and a binding</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206638#M8658</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Your StringFormat doesn't work on Labels. You need to use &lt;SPAN&gt;ContentStringFormat or change to TextBlock.&amp;nbsp;&lt;/SPAN&gt;More info here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/4206612/wpf-stringformat-on-label-content/4209539#4209539" target="_self"&gt;https://stackoverflow.com/questions/4206612/wpf-stringformat-on-label-content/4209539#4209539&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 05:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206638#M8658</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2022-08-26T05:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with a XAML Label with hard coded text and a binding</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206711#M8661</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp;thank you! lord have mercy. I checked several articles and I could have sworn I looked only at Labels. Maybe I need more sleep.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 12:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206711#M8661</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-08-26T12:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with a XAML Label with hard coded text and a binding</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206717#M8662</link>
      <description>&lt;P&gt;One more follow up. I wanted to change the label to say "3 airports found". That required an escape sequence {}, otherwise the initial curly brace will not compile.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Label x:Name="lblAptCount" Content="{Binding Path=DvAirports.Count}" ContentStringFormat="{}{0} airports found"
       ToolTip="Number of airports found near origin airport" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="1.239,5.789" Margin="0,134,0,0" Width="207"/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;{}&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 13:11:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/issues-with-a-xaml-label-with-hard-coded-text-and/m-p/1206717#M8662</guid>
      <dc:creator>AbelPerez</dc:creator>
      <dc:date>2022-08-26T13:11:21Z</dc:date>
    </item>
  </channel>
</rss>

