ArcGIS Server » Web Applications » Silverlight/WPF API
 
 

Code Gallery

Silverlight Showcase Application

This application is a full-featured showcase application demonstrating various types of layer types and tools in one application. Most of the features are from existing samples already available on the resource center, but put together into one complete application.

It takes full advantage of Silverlight 3 features like triggers, actions, behaviors and element binding and merged dictionaries to better structure code as well as creating a series of user controls that can be reused.

Some of the features include:
- Redlining (draw, edit, delete).
- Layer controls.
- Geodetic radius tool.
- Line and polygon measure.
- GeoRSS layer.
- WMS Layer.
- Gazetteer locator control.
- Re-templating existing controls for a different look-and feel.
- HeatMap.
- Pie charts embedded in marker symbols and map tips.

The sample requires "Silverlight Toolkit" and "Expression Blend SDK" installed. You can download these from here:
http://silverlight.codeplex.com
http://tinyurl.com/BlendSDK
Author SharpGIS
Date Submitted 08-04-2009
Date Last Updated 08-07-2009
Language C#
Product/Version ArcGIS Server 9.3
Views 10798
Downloads 2790
License Type ESRI Attribution and License Agreement
(11 ratings)

Report Inappropriate Content: This Code Gallery is intended for the free exchange of code related to ESRI software products. Let us know if this entry is inappropriate (e.g., a download for a commercial product).

 

question   posted by miya2008 on Aug 04, 2009 6:43 PM

Where is ESRI.ArcGIS.Samples.PieChartSymbology?

RE: question   posted by SharpGIS on Aug 05, 2009 9:41 AM

Sorry about that. Copied the wrong assembly :-) Dependencies has been updated. Also note the list of prerequisites in the readme.txt.

OutOfBrowserSettings.xml   posted by r0n3i1 on Aug 05, 2009 12:06 PM

on build - build failure: Application manifest generation failed. Cannot find the out-of-browser settings file ....OutOfBrowserSettings.xml. This file is missing.

OutOfBrowserSettings.xml   posted by r0n3i1 on Aug 05, 2009 12:11 PM

Or you can just right click SilverMapDemo project in VS, choose properties, then silverlight, then uncheck "enable running application out of the browser". To re-setup: http://msdn.microsoft.com/en-us/library/dd833073(VS.95).aspx Just in case anyone runs into this.

Where is the ESRI.ArcGIS.Samples?   posted by JingjingLi on Aug 06, 2009 6:13 AM

I have installed everything you mentioned in readme file. But I got 50 errors when I tried to open page.xaml. The first one was on xmlns:local="clr-namespace:ESRI.ArcGIS.Samples". Any comment?

Invalid URI Schema   posted by isqueenie on Aug 09, 2009 11:47 PM

I've download everything but it prompted "Invalid URI Schema 'file://' for map control Controls must be hosted in a HTTP(S) website"

RE: Invalid URI Schema   posted by SharpGIS on Aug 12, 2009 5:56 PM

Please read the readme.txt. It contains information on what to do before running the application (like setting what project to start when running it).

SilverMapDemo Organising Resource   posted by camirvine on Aug 18, 2009 9:00 AM

I just wanted to know what to set as the build options for the Theme Xaml files for the controls. And how all these theme files are wrapped in the generic.xaml file. I have tried under merged dictionaries source="Assemblyname;component/Theme/DraggableWindow.Theme.xaml" I am trying to use the draggable window features, but ended up with a windowless popup dialog.

ESRI.ArcGIS.Samples   posted by iamlaksh3 on Sep 23, 2009 1:35 AM

I have followed as per read me text, SL 3 along with Tool kit (July 2009) and Blend SDK is installed. But am getting error Error 1 " The type or namespace name 'MouseWheelEventArgs' could not be found (are you missing a using directive or an assembly reference?) E:\sl3\SliverLightShowCase\SilverMapDemo\Behaviors\WheelZoom.cs 53 59 SilverMapDemo Please help me. I could not get ESRI.ArcGIS.Samples? In Dependencie folder ESRI.ArcGIS.Samples dll is missing. Where to find?.

Developer Manual?   posted by iamlaksh4 on Sep 25, 2009 2:55 AM

Hi SharpGIS Do you have developer help document on this?. Since I am new to SL, it is difficult to understand work-flow and code. Can you provide us atleast high level design document. Thanks in advance.

Using Draggable Window in another project   posted by brenth on Sep 25, 2009 8:46 AM

I am trying to set up the Draggable Window to work in another project. Everything works fine except the X button doesn't close the window. What do I have to do to capture that event and close the window?

RE: Developer Manual?   posted by SharpGIS on Oct 01, 2009 5:40 PM

Sorry there is no "help document" or similar for this app. It is just a sample application that tries to show the bells of whistles of what can be done with the Silverlight API. It is by no means meant as a customizable application. Furthermore if you are new to Silverlight, I suggest that you first get your head well around the basics first, before trying to dig into how this application was built. As mentioned in the description it makes use of a lot of different Silverlight features. If you understand those, this application should be fairly easy to understand as well.

Thanks!   posted by jamesfdillon on Oct 17, 2009 10:14 AM

The project built and ran perfectly, no issues. Great UI with many helpful examples! Thanks for posting this for all of us to use :)

XamlParseException occurred   posted by rtolapi on Nov 16, 2009 2:46 AM

I am also getting the same error... System.Windows.Markup.XamlParseException occurred Message="AG_E_PARSER_BAD_TYPE [Line: 263 Position: 51]" StackTrace: at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at ESRI.ArcGIS.Samples.SilverMapDemo.Page.InitializeComponent() at ESRI.ArcGIS.Samples.SilverMapDemo.Page..ctor()

XamlParseException occurred   posted by rtolapi on Nov 16, 2009 4:14 AM

I got the solution... I was using "Silverlight 3 Toolkit October 2009" which is not compatible. We need to use "Silverlight 3 Toolkit July 2009"

Problems in adding Bing Map layers in silverMapDemo   posted by Athanasis77 on Nov 26, 2009 3:51 AM

I am facing some difficulties when I try to use the SilverMapDemo (http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16504) with bing maps. The reason I want to use bing maps is that I have some ArcGIS services developed (in Spatial Reference 102113) and when I have the following layerds: then I see a blank page because the services have different spatial Reference. Bing maps however are in Web mercator reference, like mine services!So I must use bing maps in the appplication ... I followed the instructions from the URL http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/help/Using_VEtokenservice.htm , and I have successfullly created a bing token and added in the aplication. however the instructions suppose the existence of a .aspx file. But, in the silverMapDemo template there is no .aspx file and I cannot finish the steps, especially the step: MySilverlightControl.InitParameters = string.Format("token={0}", token); Is there anyone who has solved the problem of adding a bing map in SilverMapDemo? Thank you in advance.

RE: Problems in adding Bing Map layers in silverMapDemo   posted by SharpGIS on Dec 09, 2009 4:13 PM

This demo was specifically made to demonstrate some features of the Silverlight API and took some shortcuts by assuming the map is in geographic coordinates. The intent of this application was never to serve as a base for creating custom applications, so don't expect it to be easy to convert this application to fulfill your use-cases or to use your own services. You are probably better off starting out with one of the map templates that come with the v1.1 Silverlight API installer and work your way from there.

Using Bing Maps   posted by hcervantes on Jan 12, 2010 10:09 AM

I am using bing maps, and of course, I switched everything to use WebMercator as oppose to geographic coordinates. This created a lot of problems becuase it broke most of the tools. I added a helper to convert points between Geo and Webmercator and got most of the tools to work, except the Radius Measure and the Silverglobe. Does anyone know of a better way? Thanks.

Toolkit Version   posted by Yewtaah on Jan 28, 2010 2:29 PM

Any chance this solution will be updated to be compatible with "Silverlight 3 Toolkit October 2009"? I am also getting the System.Windows.Markup.XamlParseException: AG_E_PARSER_BAD_TYPE [Line: 263 Position: 51]

SilverGlobe bug.   posted by dayr on Feb 04, 2010 9:16 AM

Great Showcase application by the way. I was wondering if your still working on it and tweaking it? The silverglobe has a bit of a bug that if you rotate your map the globe doesn't rotate with it...