|
POST
|
Can you share some code? What layers are you using? Is there a sampleserver service that will also replicate the issue?
... View more
02-22-2011
04:21 PM
|
0
|
0
|
640
|
|
POST
|
This seems like a Silverlight question too. You can post these type of questions at Microsoft forums since you are using their Toolkit. You may also want to check out this page https://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html
... View more
02-22-2011
04:18 PM
|
0
|
0
|
433
|
|
POST
|
This is related thread: http://forums.arcgis.com/threads/21418-formatting-issues
... View more
02-22-2011
04:11 PM
|
0
|
0
|
936
|
|
POST
|
When copying and pasting code from the SDK samples onto a new SL app, you only need to replace only the relevant sections. Replace the following section in your XAML
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
</Grid>
with XAML-code from the SubLayerList sample starting from these lines
xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
<Grid x:Name="LayoutRoot">
<!-- more code goes here -->
As for the code-behind: Copy and paste code after this line InitializeComponent(); It may or may not find a few things need to be resolved by a using directive or an assembly reference.
... View more
02-22-2011
04:07 PM
|
0
|
0
|
513
|
|
POST
|
I think you have it correctly if your map control is named "MapMain". However, v2.1 and earlier do not support Binding for "Resolution", this is new to v2.2 The following code will only work for v2.2 and up:
<TextBlock Text="{Binding ElementName=MyMap, Path=Resolution}" VerticalAlignment="Top" HorizontalAlignment="Center"/>
The following code will work for v2.1 and earlier:
<TextBlock x:Name="MyResolution" Text="0" VerticalAlignment="Top" HorizontalAlignment="Center"/>
private void MyMap_ExtentChanged(object sender, ExtentEventArgs e)
{
double res = Convert.ToDouble(MyResolution.Text);
if (res != (sender as Map).Resolution)
{
res = (sender as Map).Resolution;
MyResolution.Text = res.ToString();
}
}
... View more
02-22-2011
03:57 PM
|
0
|
0
|
897
|
|
POST
|
It's good that you have it working now. However if hard-coded value worked, then all you need to check are the Binding statement and the Dependency Property if they are set up correctly. I still do not see why you are getting a different behavior with the sample.
... View more
02-22-2011
03:41 PM
|
0
|
0
|
561
|
|
POST
|
The fiddler results that you copied and pasted does not really tell us much. I don't think it captured the web requests. When I copied your code to a new SL app, run Fiddler before running the sample app, I get a very different fiddler result than yours. Kindly see attached I highlighted the requests you should expect with the code that you shared in post# 6.
... View more
02-22-2011
03:36 PM
|
0
|
0
|
4005
|
|
POST
|
You can check for IsInitialized property, this should have already been set to true or false when Initialized event fires. As for your other question, I'm not sure if Loaded or LayoutUpdated are the events you need to know whether all controls drawn. If I understood your question right, it's a Silverlight question? Maybe you can also post at their forum.
... View more
02-22-2011
03:14 PM
|
0
|
0
|
577
|
|
POST
|
I think I know what you are talking about. If you use the following sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#GraphicsMapTip Only the States layer have a MapTipHideDelay. When you mouse over Washington and then to another feature (States layer: Idaho or Cities layer: Spokane), the MapTipHideDelay is not used. This is by design, once you enter another feature, the previous map tip should close immediately to open another map tip. If however, you are moving your mouse from Washington towards Vancover where there is no other feature, you will find that the MapTipHideDelay is used. Could you verify that this is the behavior you are seeing in your app? If not, please send share code that will help us reproduce the issue. Thanks.
... View more
02-22-2011
03:03 PM
|
0
|
0
|
2199
|
|
POST
|
I cannot produce the same StackTrace but I do get a crash. Using the same sample and API assemblies for v2.1 Final with the steps you mentioned in post#1. I get NullReference exception instead from the zoom. This has been fixed for v2.2 beta. This does not look like the same error you are hitting though.
... View more
02-22-2011
02:50 PM
|
0
|
0
|
1275
|
|
POST
|
Pleae refer to this blog post about troubleshooting blank layers: http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2009/08/24/Troubleshooting-blank-layers.aspx Could you share some code on how the layers are added to your map as well?
... View more
02-22-2011
05:49 AM
|
0
|
0
|
4005
|
|
POST
|
Oh right I forgot you work in VB. Add this line in your AssemblyInfo file <Assembly: System.Runtime.CompilerServices.InternalsVisibleTo("System.Windows")>
... View more
02-18-2011
03:42 PM
|
0
|
0
|
1400
|
|
POST
|
Ah I see. You can refer to this SDK sample: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Thematic_Interactive. This other sample use ClassBreaksRenderer: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureLayerRendering
... View more
02-18-2011
10:30 AM
|
0
|
0
|
1403
|
|
POST
|
Which SDK sample are you referring to? Thishttp://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LayerList? Can you share some code and/or steps that will help us reproduce the issue? Also, what version of the API are you using?
... View more
02-18-2011
09:46 AM
|
0
|
0
|
1275
|
|
POST
|
This Silverlight forum thread might help: http://forums.silverlight.net/forums/p/19912/68700.aspx
... View more
02-18-2011
09:41 AM
|
0
|
0
|
320
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-10-2026 12:13 PM | |
| 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 |
| Online Status |
Offline
|
| Date Last Visited |
07-13-2026
09:07 AM
|