<HyperlinkButton Content="Go To Website" Foreground="White" NavigateUri="http://www.ci.mn.us/content/141/195/default.aspx" TargetName="_blank"> </HyperlinkButton>
<HyperlinkButton Content="Open PDF" VerticalAlignment="Center" Foreground="White" NavigateUri="{Binding [MAPITVALUE]}" TargetName="_blank" > </HyperlinkButton>
Think I got it....added Attributes
NavigateUri="{Binding Attributes[MAPITVALUE]}"
Yep that was it.....
<HyperlinkButton Content="{Binding [Link]}" NavigateUri="{Binding Attributes[Link]}" /> MessageBox.Show(args.Graphic.Attributes.Keys.Count.ToString());
In the maptip case, the datacontext is a dictionary of attributes, so the binding should be NavigateUri="{Binding [Link]}" instead of NavigateUri="{Binding Attributes[Link]}"
That being said, if even ="{Binding [Link]}" is null, it might happen that your link attribute is not returned by the server.
Check that this attributes is listed in the 'OutFields' property of your feature layer.
Any clue?
If your 'OutField' is set to '*', all published fields shoud be returned. Check that your fields have not be hidden before publishing the service.
Otherwise, use fiddler to look at the request sent to the server. This might give a clue.
If your 'OutField' is set to '*', all published fields shoud be returned. Check that your fields have not be hidden before publishing the service.
Otherwise, use fiddler to look at the request sent to the server. This might give a clue.