Select to view content in your preferred language

Creating widget

2319
6
04-23-2012 01:47 AM
YassineEL_JADIDI
Deactivated User
Hello,
Can anyone help me with a doc that show me how to create widgets step by step (Query widget for example) in my application.
i"m new in silverlight developpment, so really i need help !!
Thank You
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
What kind of widget are we talking about here? There are some out-of-the box widgets provided in our Toolkit. You can check out the SDK samples here: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitEditorWidget, http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid, http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendSimple.

We have a QueryTask and FeatureLayer (that encapsulates a QueryTask), the results can be displayed on map through GraphicsLayer and/or tools like FeatureDataGrid. You can start off with: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#QueryWithoutMap
0 Kudos
YassineEL_JADIDI
Deactivated User
Thank you for your answer,
i want a toolbar that collect all tools i want(query, zoom, pan....), and i can activate or desactivate each tool in the toolbar, like Silverlight viewer !!
really i need to know how to do that step by step...please help me....i don't have much time !!
Thanks
0 Kudos
JenniferNery
Esri Regular Contributor
There are also available templates here: http://help.arcgis.com/en/webapi/silverlight/samples/TemplateGalleryWeb/start.htm. You can write your own widget by piecing together one SDK sample at a time. There is Navigation control you can use for panning/zooming. There is EditorWidget control you can use for editing. There is SpatialQuery action. Some are provided for you out-of-the box, you just need to know how to use them and how to put them together in your application. The SDK sample page is a good starting point.
0 Kudos
sameerpuppal
Deactivated User
Hi,

Even I am new to development in silverlight but I found this template :-http://www.arcgis.com/home/item.html?id=ad9b257016ab40ee9def89ac2d3db2b3

It has many widgets which has been created in such a way that many things are configurable through XML (and not XAML).

with the help of this template I created new widgets like graphic tool etc and it worked good.

you will be able to really speed up your development and complete viewer will be configurable.


Regards,
Sameer

(If this answered your query please mark this as answer)
0 Kudos
YassineEL_JADIDI
Deactivated User
Thank you sameer,
i saw this sample already, but i want to create my own widget on my application.
0 Kudos
saurabhgupta2
Emerging Contributor
Hello All

I am also facing the same problem. Dont know how to create widget from the start. I found a template and tried to replicate the methodology they have adopted but found no luck .
Can anyone refer to any document or can illustrate with example how to create widget for a silverlight application


Regards

Saurabh
0 Kudos