<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>
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.
Any clue?
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.
<HyperlinkButton Content="{Binding [Link]}" NavigateUri="{Binding Attributes[Link]}" />
MessageBox.Show(args.Graphic.Attributes.Keys.Count.ToString());
Think I got it....added Attributes NavigateUri="{Binding Attributes[MAPITVALUE]}" Yep that was it.....
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.