<?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: maptip is not updated in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646852#M16595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you share with us your code? The MapTip displays values from graphic attributes, even when these graphics come as a result of a Query. &lt;BR /&gt;&lt;BR /&gt;I am using the following SDK sample: &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip&lt;/A&gt; with the following code-change.&lt;BR /&gt;&lt;BR /&gt;In this sample, I have 2 attributes that I display in my MapTip. One is from the service and the other is a made up attribute that I modify in my code. You can see in the Output window its previous value and in the Maptip its new value. I see that the map tip is updated. If you have some code to share or steps to reproduce, that will be great.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;Grid.Resources&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer x:Key="MyRenderer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleFillSymbol Fill="Red"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer&amp;gt;
&amp;nbsp; &amp;lt;/Grid.Resources&amp;gt;

&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer ID="MyGraphicsLayer" Renderer="{StaticResource MyRenderer}" MouseEnter="GraphicsLayer_MouseEnter"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [MyAttribute]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [HOUSEHOLDS]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void StatesGraphicsLayerQueryTask_ExecuteCompleted(object sender, QueryEventArgs e)
{
 GraphicsLayer layer = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
 foreach (var g in e.FeatureSet.Features)
 {
&amp;nbsp; Random r = new Random();
&amp;nbsp; g.Attributes["MyAttribute"] = r.Next(0, 10);
&amp;nbsp; layer.Graphics.Add(g);
 }
}

private void GraphicsLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
{
 var oldVal = (int)e.Graphic.Attributes["MyAttribute"];
 System.Diagnostics.Debug.WriteLine(oldVal);
 e.Graphic.Attributes["MyAttribute"] = oldVal + 1;
}
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish I could share the code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, the difference between your sample and mine is that I do not implement&amp;nbsp; GraphicsLayer_MouseEnter event handler.&amp;nbsp; I did a DictionaryConverter and bind maptip value to a graphic attribute (like you did).&amp;nbsp; Am I supposed to implement the mouserEnter event handler in addition to MapTip???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:26:54 GMT</pubDate>
    <dc:creator>ThaoNguyen</dc:creator>
    <dc:date>2021-12-12T03:26:54Z</dc:date>
    <item>
      <title>maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646848#M16591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I create maptip for my map. Everything is working fine except that when I update data that are associated with my map, the first time I mouse over a region, the maptip value is not updated, it still shows the old data until I mouse over another region then come back to the first one, it is updated.&amp;nbsp; What can I do?&amp;nbsp; Is this a bug from Arcgis?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 16:11:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646848#M16591</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2011-03-28T16:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646849#M16592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I cannot replicate the issue with the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this sample, I update the number of households and print in the OutputWindow its old value so I can compare the result displayed in my map tip.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="MyStateLayer" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5" OutFields="*" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseEnter="FeatureLayer_MouseEnter"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [HOUSEHOLDS]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var oldVal = (int)e.Graphic.Attributes["HOUSEHOLDS"];
&amp;nbsp;&amp;nbsp; System.Diagnostics.Debug.WriteLine(oldVal);
&amp;nbsp;&amp;nbsp; e.Graphic.Attributes["HOUSEHOLDS"] = oldVal + 1;
&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:26:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646849#M16592</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T03:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646850#M16593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I cannot replicate the issue with the following code:&lt;BR /&gt;In this sample, I update the number of households and print in the OutputWindow its old value so I can compare the result displayed in my map tip.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="MyStateLayer" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5" OutFields="*" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseEnter="FeatureLayer_MouseEnter"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [HOUSEHOLDS]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:FeatureLayer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var oldVal = (int)e.Graphic.Attributes["HOUSEHOLDS"];
&amp;nbsp;&amp;nbsp; System.Diagnostics.Debug.WriteLine(oldVal);
&amp;nbsp;&amp;nbsp; e.Graphic.Attributes["HOUSEHOLDS"] = oldVal + 1;
&amp;nbsp; }
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the way we update data is different.&amp;nbsp; We query the map, add graphics to map and associate our data to map.&amp;nbsp; The data we have are NOT graphic attribute values.&amp;nbsp; There are cases that we update our data and we do update the map graphics again by clear the graphics and readd them with new data.&amp;nbsp; In this case, the maptip doesn't behave right.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646850#M16593</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-12T03:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646851#M16594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you share with us your code? The MapTip displays values from graphic attributes, even when these graphics come as a result of a Query. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the following SDK sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip&lt;/A&gt;&lt;SPAN&gt; with the following code-change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this sample, I have 2 attributes that I display in my MapTip. One is from the service and the other is a made up attribute that I modify in my code. You can see in the Output window its previous value and in the Maptip its new value. I see that the map tip is updated. If you have some code to share or steps to reproduce, that will be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;Grid.Resources&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer x:Key="MyRenderer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleFillSymbol Fill="Red"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer&amp;gt;
&amp;nbsp; &amp;lt;/Grid.Resources&amp;gt;

&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer ID="MyGraphicsLayer" Renderer="{StaticResource MyRenderer}" MouseEnter="GraphicsLayer_MouseEnter"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [MyAttribute]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [HOUSEHOLDS]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void StatesGraphicsLayerQueryTask_ExecuteCompleted(object sender, QueryEventArgs e)
{
 GraphicsLayer layer = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
 foreach (var g in e.FeatureSet.Features)
 {
&amp;nbsp; Random r = new Random();
&amp;nbsp; g.Attributes["MyAttribute"] = r.Next(0, 10);
&amp;nbsp; layer.Graphics.Add(g);
 }
}

private void GraphicsLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
{
 var oldVal = (int)e.Graphic.Attributes["MyAttribute"];
 System.Diagnostics.Debug.WriteLine(oldVal);
 e.Graphic.Attributes["MyAttribute"] = oldVal + 1;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646851#M16594</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T03:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646852#M16595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you share with us your code? The MapTip displays values from graphic attributes, even when these graphics come as a result of a Query. &lt;BR /&gt;&lt;BR /&gt;I am using the following SDK sample: &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip&lt;/A&gt; with the following code-change.&lt;BR /&gt;&lt;BR /&gt;In this sample, I have 2 attributes that I display in my MapTip. One is from the service and the other is a made up attribute that I modify in my code. You can see in the Output window its previous value and in the Maptip its new value. I see that the map tip is updated. If you have some code to share or steps to reproduce, that will be great.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;Grid.Resources&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer x:Key="MyRenderer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleFillSymbol Fill="Red"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer&amp;gt;
&amp;nbsp; &amp;lt;/Grid.Resources&amp;gt;

&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer ID="MyGraphicsLayer" Renderer="{StaticResource MyRenderer}" MouseEnter="GraphicsLayer_MouseEnter"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [MyAttribute]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [HOUSEHOLDS]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void StatesGraphicsLayerQueryTask_ExecuteCompleted(object sender, QueryEventArgs e)
{
 GraphicsLayer layer = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
 foreach (var g in e.FeatureSet.Features)
 {
&amp;nbsp; Random r = new Random();
&amp;nbsp; g.Attributes["MyAttribute"] = r.Next(0, 10);
&amp;nbsp; layer.Graphics.Add(g);
 }
}

private void GraphicsLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
{
 var oldVal = (int)e.Graphic.Attributes["MyAttribute"];
 System.Diagnostics.Debug.WriteLine(oldVal);
 e.Graphic.Attributes["MyAttribute"] = oldVal + 1;
}
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish I could share the code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, the difference between your sample and mine is that I do not implement&amp;nbsp; GraphicsLayer_MouseEnter event handler.&amp;nbsp; I did a DictionaryConverter and bind maptip value to a graphic attribute (like you did).&amp;nbsp; Am I supposed to implement the mouserEnter event handler in addition to MapTip???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646852#M16595</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-12T03:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646853#M16596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I wish I could share the code...&lt;BR /&gt;Anyway, the difference between your sample and mine is that I do not implement&amp;nbsp; GraphicsLayer_MouseEnter event handler.&amp;nbsp; I did a DictionaryConverter and bind maptip value to a graphic attribute (like you did).&amp;nbsp; Am I supposed to implement the mouserEnter event handler in addition to MapTip???&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, I'm using MapTip for graphic layer like below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:GraphicsLayer x:Name="GraphicLayer" ID="ResultMap" Opacity="0.85"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!-- map tip --&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.MapTip&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;maptip content here&amp;gt;&amp;lt;/esri:GraphicsLayer.MapTip&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:GraphicsLayer&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2011 13:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646853#M16596</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2011-04-01T13:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646854#M16597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you share with us your code? The MapTip displays values from graphic attributes, even when these graphics come as a result of a Query. &lt;BR /&gt;&lt;BR /&gt;I am using the following SDK sample: &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip&lt;/A&gt; with the following code-change.&lt;BR /&gt;&lt;BR /&gt;In this sample, I have 2 attributes that I display in my MapTip. One is from the service and the other is a made up attribute that I modify in my code. You can see in the Output window its previous value and in the Maptip its new value. I see that the map tip is updated. If you have some code to share or steps to reproduce, that will be great.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;Grid.Resources&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer x:Key="MyRenderer"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:SimpleFillSymbol Fill="Red"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer.Symbol&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:SimpleRenderer&amp;gt;
&amp;nbsp; &amp;lt;/Grid.Resources&amp;gt;

&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer ID="MyGraphicsLayer" Renderer="{StaticResource MyRenderer}" MouseEnter="GraphicsLayer_MouseEnter"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [MyAttribute]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding [HOUSEHOLDS]}"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer.MapTip&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/esri:GraphicsLayer&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
void StatesGraphicsLayerQueryTask_ExecuteCompleted(object sender, QueryEventArgs e)
{
 GraphicsLayer layer = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
 foreach (var g in e.FeatureSet.Features)
 {
&amp;nbsp; Random r = new Random();
&amp;nbsp; g.Attributes["MyAttribute"] = r.Next(0, 10);
&amp;nbsp; layer.Graphics.Add(g);
 }
}

private void GraphicsLayer_MouseEnter(object sender, GraphicMouseEventArgs e)
{
 var oldVal = (int)e.Graphic.Attributes["MyAttribute"];
 System.Diagnostics.Debug.WriteLine(oldVal);
 e.Graphic.Attributes["MyAttribute"] = oldVal + 1;
}
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With your code, instead of updating value from GraphicsLayer_MouseEnter(), please try to add a separate button on your map panel, clicking on it will fire an event which clears the graphics added, then add new ones with new data.&amp;nbsp; Now, go to map and mouse over, I think this may recreate the problem I'm having. The first graphic tip will be the old data, move the mouse to another feature will get the updated data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646854#M16597</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-12T03:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646855#M16598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I removed GraphicsLayer.MouseEnter and updated the graphic on a button click event my map tip still shows the new value. Please try the attached sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
 GraphicsLayer layer = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
 var graphic = layer.Graphics.FirstOrDefault(g =&amp;gt; (int)g.Attributes["ObjectID"] == 24);
 if (graphic != null)
 {
&amp;nbsp; var oldVal = (int)graphic.Attributes["MyAttribute"];
&amp;nbsp; System.Diagnostics.Debug.WriteLine(oldVal);
&amp;nbsp; graphic.Attributes["MyAttribute"] = oldVal + 1;
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can tweak this sample and let me know the steps to reproduce the issue you are seeing with Maptip, that would be great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646855#M16598</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T03:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: maptip is not updated</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646856#M16599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I removed GraphicsLayer.MouseEnter and updated the graphic on a button click event my map tip still shows the new value. Please try the attached sample.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
 GraphicsLayer layer = this.MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
 var graphic = layer.Graphics.FirstOrDefault(g =&amp;gt; (int)g.Attributes["ObjectID"] == 24);
 if (graphic != null)
 {
&amp;nbsp; var oldVal = (int)graphic.Attributes["MyAttribute"];
&amp;nbsp; System.Diagnostics.Debug.WriteLine(oldVal);
&amp;nbsp; graphic.Attributes["MyAttribute"] = oldVal + 1;
 }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;If you can tweak this sample and let me know the steps to reproduce the issue you are seeing with Maptip, that would be great.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Jennifer for your effort!&amp;nbsp; I cannot recreate the problem with your code either.&amp;nbsp; I guess maybe something else that causes the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/maptip-is-not-updated/m-p/646856#M16599</guid>
      <dc:creator>ThaoNguyen</dc:creator>
      <dc:date>2021-12-12T03:27:02Z</dc:date>
    </item>
  </channel>
</rss>

