<?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 Hyperlink Button in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551777#M14079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a hyperlink button working&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&amp;lt;HyperlinkButton Content="Go To Website" Foreground="White" NavigateUri="http://www.ci.mn.us/content/141/195/default.aspx" TargetName="_blank"&amp;gt; &amp;lt;/HyperlinkButton&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now trying to bind it to a Field Value that has the URL in it....but no go....any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&amp;lt;HyperlinkButton Content="Open PDF" VerticalAlignment="Center" Foreground="White" NavigateUri="{Binding [MAPITVALUE]}" TargetName="_blank" &amp;gt; &amp;lt;/HyperlinkButton&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2011 13:05:40 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2011-04-25T13:05:40Z</dc:date>
    <item>
      <title>Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551777#M14079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a hyperlink button working&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&amp;lt;HyperlinkButton Content="Go To Website" Foreground="White" NavigateUri="http://www.ci.mn.us/content/141/195/default.aspx" TargetName="_blank"&amp;gt; &amp;lt;/HyperlinkButton&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now trying to bind it to a Field Value that has the URL in it....but no go....any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&amp;lt;HyperlinkButton Content="Open PDF" VerticalAlignment="Center" Foreground="White" NavigateUri="{Binding [MAPITVALUE]}" TargetName="_blank" &amp;gt; &amp;lt;/HyperlinkButton&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 13:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551777#M14079</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-04-25T13:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551778#M14080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Think I got it....added Attributes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NavigateUri="{Binding Attributes[MAPITVALUE]}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep that was it.....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 13:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551778#M14080</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-04-25T13:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551779#M14081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Think I got it....added Attributes&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;NavigateUri="{Binding&amp;nbsp;&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;Attributes&lt;/SPAN&gt;[MAPITVALUE]}"&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Yep that was it.....&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Same need here; I need to bind a field [Link] which has URL in it. I tried what you suggested but it doesn't work for me. Did I miss anything? BTW, I'm using ArcGIS API for Silverlight 2.4. Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;HyperlinkButton TargetName="_blank" Content="Open" NavigateUri="{Binding Attributes[Link]} /&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2012 01:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551779#M14081</guid>
      <dc:creator>JianChen</dc:creator>
      <dc:date>2012-01-29T01:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551780#M14082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;More interestingly I found that only very fiew fields of the layer can be passed via binding. There are 26 fields in total and most of them are esriFieldTypeString, I used field binding to pass the value to a HyperlinkButton as content (code below), only very few show their attribute value, others just show empty space. Unfortunately the field has URL, "Link", is one of the field cannot pass the value. I guess this might be the reason that binding for NavigateUri doesn't work. Am I right? But why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;HyperlinkButton Content="{Binding [Link]}"&amp;nbsp; NavigateUri="{Binding Attributes[Link]}" /&amp;gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand that the DataContext for a graphic is a dictionary. When I debugging it, I can find the dictionary only has 6 keys. The data source for the layer is a geodatabase feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MessageBox.Show(args.Graphic.Attributes.Keys.Count.ToString());&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anybody could tell me the rule of binding fields in a feature layer, like in which situation, the binding won't success? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551780#M14082</guid>
      <dc:creator>JianChen</dc:creator>
      <dc:date>2021-12-11T23:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551781#M14083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the maptip case, the datacontext is a dictionary of attributes, so the binding should be&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;NavigateUri="{Binding [Link]}"&lt;/SPAN&gt;&lt;SPAN&gt; instead of&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;NavigateUri="{Binding Attributes[Link]}" &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;That being said, if even &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;="{Binding [Link]}"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; is null, it might happen that your link attribute is not returned by the server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check that this attributes is listed in the 'OutFields' property of your feature layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 06:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551781#M14083</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-01-30T06:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551782#M14084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;In the maptip case, the datacontext is a dictionary of attributes, so the binding should be&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;NavigateUri="{Binding [Link]}"&lt;/SPAN&gt; instead of&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;NavigateUri="{Binding Attributes[Link]}" &lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;That being said, if even &lt;SPAN style="font-style:italic;"&gt;="{Binding [Link]}"&lt;/SPAN&gt;&amp;nbsp; is null, it might happen that your link attribute is not returned by the server.&lt;BR /&gt;Check that this attributes is listed in the 'OutFields' property of your feature layer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Dominique! NavigateUri="{Binding [Link]}" won't work either and the 'OutFields' has been set as * so every field should return. As I mentioned above, majority of the layer's attributes are not returned as I tested by different field names. In the code here, I tried to pass the value of [Link] field (esriFieldTypeString) as content of the HyperlinkButton but get nothing. I think I need to figure out why fields like [Link] aren't returned by the server. Any clue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 12:20:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551782#M14084</guid>
      <dc:creator>JianChen</dc:creator>
      <dc:date>2012-01-30T12:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551783#M14085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Any clue? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your 'OutField' is set to '*', all published fields shoud be returned. Check that your fields have not be hidden before publishing the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, use fiddler to look at the request sent to the server. This might give a clue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 14:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551783#M14085</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-01-30T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551784#M14086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If your 'OutField' is set to '*', all published fields shoud be returned. Check that your fields have not be hidden before publishing the service.&lt;BR /&gt;&lt;BR /&gt;Otherwise, use fiddler to look at the request sent to the server. This might give a clue.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm pretty sure that no field is hidden in the source. I don't think it is some issue with the service either because all the fields are able to display in a feature datagrid. I just don't know why not all fields can be passed to the DataContext of MapTip, the Dictionary in this case. I said earlier, there are 26 fields in total but the dictionary only have 6 keys. Is it possible a bug somewhere? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 15:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551784#M14086</guid>
      <dc:creator>JianChen</dc:creator>
      <dc:date>2012-01-30T15:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink Button</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551785#M14087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If your 'OutField' is set to '*', all published fields shoud be returned. Check that your fields have not be hidden before publishing the service.&lt;BR /&gt;&lt;BR /&gt;Otherwise, use fiddler to look at the request sent to the server. This might give a clue.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey Dominique, you are right! I made a mistake; the sentence to set 'OutField' to '*' was commented out and I just selected six columns by field name for other purpose. Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 19:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hyperlink-button/m-p/551785#M14087</guid>
      <dc:creator>JianChen</dc:creator>
      <dc:date>2012-01-30T19:01:46Z</dc:date>
    </item>
  </channel>
</rss>

