Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
ArcGIS Experience Builder
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Dashboards
ArcGIS Field Maps
ArcGIS StoryMaps
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Imagery and Remote Sensing Insights (IRIS) COP
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcGIS Pro SDK
ArcObjects SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Europe
Esri India
Americas
Asia Pacific
Comunidad GEOTEC
GeoDev Germany
ArcGIS Content - Esri Nederland
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
ArcGIS API Silverlight (Retired)
:
ArcGIS API Silverlight Questions
:
query on startup
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
Select to view content in your preferred language
Translate Now
query on startup
Subscribe
693
2
01-16-2014 05:55 PM
by
NathalieNeagle
Regular Contributor
01-16-2014
05:55 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
I'm looking for a silverlight example similar to this JS example
I want to query a featrue before my map starts and select it and zoom to it. The parameter would be in the url like:
http://myserver/myapp/myqueryfield=myvale
The map would load and zoom and select the feature. I would pass in different values by changing the myvalue in the URL.
Does anyone know of a Silverlight example like this?
https://developers.arcgis.com/en/javascript/jssamples/query_click.html
THnaks
Nathalie
Tags
(2)
Tags:
silverlight
web_developers
Reply
0
Kudos
All Posts
Previous Topic
Next Topic
2 Replies
by
BrentHoskisson
Frequent Contributor
01-17-2014
09:09 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Silverlight has an interface to communicate with its container Html page. To get an argument from the query string you can use:
Dictionary<string, string> urlparams = (Dictionary<string, string>)HtmlPage.Document.QueryString;
(HtmlPage is from System.Windows.Browser)
Once there just grab the parameter you want and send it off to your map query and zoom function.
Good Luck
Reply
0
Kudos
by
ShilpiJain1
Deactivated User
01-21-2014
01:01 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
You will need to write the query after InitializeComponent, which will work similar to the function initFunctionality() mentioned in JS example.
public MainPage()
{
InitializeComponent();
//your query
}
Reply
0
Kudos
Post Reply