<?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 How to assign a graphic attribute to a NavigateUri in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-assign-a-graphic-attribute-to-a-navigateuri/m-p/751900#M19246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My page has a set of fixed Hyperlink Buttons. The NavigateUri of these will change depending on the feature selected by the user. I am making the assignment like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; MessageBox.Show(feature.Attributes["Demographics Data"] as String);
 DemographicLink.NavigateUri = feature.Attributes["Demographics Data"] as Uri;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The messagebox shows that the URL is proper and the code runs without error. However when I click the hyperlink, nothing happens. The hyperlink is defined like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;HyperlinkButton x:Name="DemographicLink" NavigateUri="" TargetName="Contentframe" Content="Demographic Data" Foreground="DarkSlateBlue"/&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone suggest what I have wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2013 21:39:30 GMT</pubDate>
    <dc:creator>DonFreeman</dc:creator>
    <dc:date>2013-03-20T21:39:30Z</dc:date>
    <item>
      <title>How to assign a graphic attribute to a NavigateUri</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-assign-a-graphic-attribute-to-a-navigateuri/m-p/751900#M19246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My page has a set of fixed Hyperlink Buttons. The NavigateUri of these will change depending on the feature selected by the user. I am making the assignment like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; MessageBox.Show(feature.Attributes["Demographics Data"] as String);
 DemographicLink.NavigateUri = feature.Attributes["Demographics Data"] as Uri;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;The messagebox shows that the URL is proper and the code runs without error. However when I click the hyperlink, nothing happens. The hyperlink is defined like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;HyperlinkButton x:Name="DemographicLink" NavigateUri="" TargetName="Contentframe" Content="Demographic Data" Foreground="DarkSlateBlue"/&amp;gt;
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone suggest what I have wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 21:39:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-assign-a-graphic-attribute-to-a-navigateuri/m-p/751900#M19246</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2013-03-20T21:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a graphic attribute to a NavigateUri</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-assign-a-graphic-attribute-to-a-navigateuri/m-p/751901#M19247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;DemographicLink.NavigateUri = feature.Attributes["Demographics Data"] as Uri;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;feature.Attributes["Demographics Data"] is a string and returns null after casting to Uri.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DemographicLink.NavigateUri = new Uri(feature.Attributes["Demographics Data"]);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2013 07:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-assign-a-graphic-attribute-to-a-navigateuri/m-p/751901#M19247</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2013-03-21T07:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign a graphic attribute to a NavigateUri</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-assign-a-graphic-attribute-to-a-navigateuri/m-p/751902#M19248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dom. I had to do it this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;string dString = feature.Attributes["Demographics Data"] as string;
DemographicLink.NavigateUri = new Uri(dString);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:55:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-assign-a-graphic-attribute-to-a-navigateuri/m-p/751902#M19248</guid>
      <dc:creator>DonFreeman</dc:creator>
      <dc:date>2021-12-12T07:55:43Z</dc:date>
    </item>
  </channel>
</rss>

