|
POST
|
How are you setting the toolbar item's image? I tried the following and it worked for me without exception.
var toolbarItem = MyToolbar.Items[e.Index];
var toolbarImage = toolbarItem.Content;
if (toolbarImage is Image)
(toolbarImage as Image).Source = new System.Windows.Media.Imaging.BitmapImage(new System.Uri("/Assets/images/i_globe.png", System.UriKind.RelativeOrAbsolute));
... View more
09-21-2010
09:06 AM
|
0
|
0
|
499
|
|
POST
|
I'm not able to replicate the issue using the SDK sample. What might be causing delay loading the map? I tried moving the mouse while the map is still loading and I do not get object reference not set to an instance exception. Have you tried setting breakpoint in the MouseMove event handler?
... View more
09-21-2010
08:54 AM
|
0
|
0
|
650
|
|
POST
|
Have you tried using the FeatureDataGrid? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid The FeatureDataGrid has FilterSource property which is an IEnumerable<Graphic>. You can set this with the QueryTask results. You can also set AutoZoomToSelected to achieve what you want to happen on row selection.
... View more
09-21-2010
08:38 AM
|
0
|
0
|
673
|
|
POST
|
You can set IsSelected property for each graphic returned by the QueryTask. Note that for SelectionOnly mode, you need to add each selected graphic to the layer and save edits before the selected features are added to the server.
... View more
09-21-2010
07:05 AM
|
0
|
0
|
673
|
|
POST
|
Please check that the attribute used by your renderer match a field name in the layer. It may be because the attribute and field name do not match. This is case-sensitive. Also check that the expected values for each attribute match the renderer expected values (including their type). If the renderer does not find a matching attribute/value pair, it will use the default symbol.
... View more
09-21-2010
06:56 AM
|
0
|
0
|
820
|
|
POST
|
You can recreate this sample by putting together components from the SDK samples found in http://esriurl.com/slsdk2
... View more
09-15-2010
07:42 PM
|
0
|
0
|
419
|
|
POST
|
This is not TimeSlider issue. The service may have reached its limit of how many features it can return at once (the default is 500 for ArcGIS Server 9.3.1, 1000 for ArcGIS Server 10, 1000 for MapIt)... as mentioned here:http://help.arcgis.com/en/webapi/sil...aturelayer.htm
... View more
09-15-2010
07:33 PM
|
0
|
0
|
321
|
|
POST
|
Yes. Kindly read the Getting Started section on this link:http://help.arcgis.com/en/webapi/silverlight/help/index.html
... View more
09-14-2010
10:18 PM
|
0
|
0
|
501
|
|
POST
|
Do you mean, you see the features are on the server but your map does not show the new features? If yes, do you have the FeatureLayer's DisableClientCaching property set to true?
... View more
09-14-2010
09:21 AM
|
0
|
0
|
1232
|
|
POST
|
Thank you for your post. We are aware of this issue and it will be fixed in the next release.
... View more
09-14-2010
06:48 AM
|
0
|
0
|
431
|
|
POST
|
Instead of setting width on each of your column definition, use "Auto", so each column can adjust its width depending on the size of its content. Also, set the HorizontalContentAlignment of ListBox to "Stretch", so that the grid would stretch as the ListBox increase its width.
... View more
09-13-2010
06:31 AM
|
0
|
0
|
459
|
|
POST
|
You can refer to this link for workaround: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2b5f8ab5-e3ad-4f5f-b1fc-177b29f369d2 It seems like ObservableCollection is not available in XAML. I have tried to include System.Collections.ObjectModel assembly before too and this type is not available in the intellisense. In this forum post, they suggest creating your local class that inherits from ObservableCollection and creating an instance of your class in XAML instead.
... View more
09-12-2010
08:25 PM
|
0
|
0
|
564
|
|
POST
|
Did you get to resolve this? If not, I suggest starting a new Silverlight application using VisualStudio (instead of Expression Blend) and then updating the XAML and code-behind with the sample. However, when updating the default XAML and code-behind, do not overwrite these parts, keep the default class and namespace definition that was created by VisualStudio: XAML: <UserControl x:Class="ArcGISSilverlightSDK.ToolBarWidget" Code-behind: Namespace ArcGISSilverlightSDK Partial Public Class ToolBarWidget Inherits UserControl
... View more
09-12-2010
07:55 PM
|
0
|
0
|
3213
|
|
POST
|
The better solution would be to define visual states as Morten had suggested. The MouseEnter, MouseLeave events are on the Map.
... View more
09-12-2010
07:44 PM
|
0
|
0
|
1958
|
|
POST
|
Are you using the ZoomSlider to update the map's resolution too? What exactly does ResolutionToValue() do? I suspect you use it to convert the double value to int? How are you setting the slider's Minimum and Maximum values? Your code-behind shows that you use the map's resolution to update the value on the ZoomSlider but are you using the slider to update the map's resolution too? Are you doing any binding in your XAML? I wonder if the error occurs before or after the ZoomSlider value is set. Try to debug through this and also look at the stack trace if there's any helpful information there. I'm sorry that I have more questions that answer, it's difficult to pin point the error without knowing the purpose of the slider and how it is used with the map.
... View more
09-12-2010
07:39 PM
|
0
|
0
|
391
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-11-2025 01:30 PM | |
| 1 | 06-06-2025 10:14 AM | |
| 1 | 03-17-2025 09:47 AM | |
| 1 | 07-24-2024 07:32 AM | |
| 1 | 04-05-2024 06:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-12-2026
09:38 AM
|