<?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: How do I set the background-/text color of a callout in ArcGIS runtime 100.2 (WPF) ? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374074#M4421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Morten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used Snoop to get the value and edit it runtime, since I don't have VS2017 just yet. Anyway, your tip did lead me back on track - thanks a lot for the fast response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 May 2018 07:24:31 GMT</pubDate>
    <dc:creator>ThomasLindegaard</dc:creator>
    <dc:date>2018-05-28T07:24:31Z</dc:date>
    <item>
      <title>How do I set the background-/text color of a callout in ArcGIS runtime 100.2 (WPF) ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374071#M4418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, we are working with callout's in the map control. In the examples I see regarding this, the background color is white and the text is black. When I use a callout the background is white, but the text is also white (with a slightly different shade, so I'm able to tell that the correct text is there). How do I set the colors used in a callout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/409031_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 04:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374071#M4418</guid>
      <dc:creator>ThomasLindegaard</dc:creator>
      <dc:date>2018-05-25T04:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the background-/text color of a callout in ArcGIS runtime 100.2 (WPF) ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374072#M4419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this doesn't exactly answer your question, but if you want more control over your Callout, you can use the following:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;public&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ShowCalloutAt&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;MapPoint location&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; UIElement calloutContent&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Point leaderOffset &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;default&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This allows you to define your own UIElement, the appropriate bindings, etc, and can be used like this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;ShowCalloutAt&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;location&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MyFancyCalloutView&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; DataContext &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;MyFancyCalloutViewModel&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;feature&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; _featureTable&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// Obviously you can style this in xaml&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Background &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Brushes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PaleGoldenrod&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderBrush &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Brushes&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OliveDrab&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; BorderThickness &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Thickness&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374072#M4419</guid>
      <dc:creator>ThomasAriston</dc:creator>
      <dc:date>2021-12-11T17:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the background-/text color of a callout in ArcGIS runtime 100.2 (WPF) ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374073#M4420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you set a global style on TextBlock? That could be what's happening here. You can use the Live Visual Tree explorer in Visual Studio 2017 to see what's really being rendered and where styles are coming from:&amp;nbsp;&lt;A class="jivelink10" href="https://blogs.msdn.microsoft.com/visualstudio/2015/02/24/introducing-the-ui-debugging-tools-for-xaml/" title="https://blogs.msdn.microsoft.com/visualstudio/2015/02/24/introducing-the-ui-debugging-tools-for-xaml/"&gt;https://blogs.msdn.microsoft.com/visualstudio/2015/02/24/introducing-the-ui-debugging-tools-for-xaml/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 20:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374073#M4420</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-05-25T20:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set the background-/text color of a callout in ArcGIS runtime 100.2 (WPF) ?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374074#M4421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Morten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used Snoop to get the value and edit it runtime, since I don't have VS2017 just yet. Anyway, your tip did lead me back on track - thanks a lot for the fast response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 May 2018 07:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/how-do-i-set-the-background-text-color-of-a/m-p/374074#M4421</guid>
      <dc:creator>ThomasLindegaard</dc:creator>
      <dc:date>2018-05-28T07:24:31Z</dc:date>
    </item>
  </channel>
</rss>

