|
POST
|
It looks like you've incorrectly set up an animation somewhere in your control template's VisualStateManager. A double animation must point to a target property that is a number. So to animate a RenderTransform, you must separate it into pieces that can be represented by numbers. For example, to animate the scale (X and Y), use the following pattern: <VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal"/>
<VisualState x:Name="MouseOver">
<Storyboard>
<DoubleAnimation
Duration="0" To="1.2"
Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"
Storyboard.TargetName="MainElement"/>
<DoubleAnimation
Duration="0" To="1.2"
Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)"
Storyboard.TargetName="MainElement"/>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
.
.
.
<Grid x:Name="MainElement">
<Grid.RenderTransform>
<ScaleTransform />
</Grid.RenderTransform>
</Grid>
... View more
10-06-2010
04:01 AM
|
0
|
0
|
878
|
|
POST
|
Anyone know if it's possible to define a symbol template in XAML for a FeatureLayer incorporating the various symbol graphics that are parsed from the Feature service? Specifically, I have a feature layer with 3 or 4 different symbols, but I want each symbol's rotation bound to Attributes[Angle]. Can it be done and how? Thanks, Dan
... View more
10-01-2010
11:42 AM
|
0
|
1
|
594
|
|
POST
|
I use an older version of the WmsLayer code, and when I updated to the latest, it broke. I think there's a problem with the GetCapabilities() method and some WMS sources (not all WMS are equal :)). Get out your Fiddler to see what error the WMS returns.
... View more
07-29-2010
04:44 AM
|
0
|
0
|
563
|
|
POST
|
Dan, you da man! I had originally downloaded via Chrome (how dare I do such a thing?), switching to the evil that is IE worked. This is a new one for me. Thanks. As usual, props go to Morten. 🙂 He suggested the workaround.
... View more
07-13-2010
06:34 AM
|
0
|
0
|
244
|
|
POST
|
Same issue here on XP 64 bit SP2: [INDENT]The image file C:\Documents and Settings\cooperc\Desktop\ArcGISSilverlightWPF12.exe is valid, but is for a machine type other than the current machine.[/INDENT]Is this exe 16-bit?? Lots of Googling on this error is telling me that it may be. ESRI? Anyone have any ideas for workarounds on this? I got this error yesterday when I downloaded the .exe with FireFox. Then someone advised me to download it with IE. That did the trick for me.
... View more
07-13-2010
06:23 AM
|
0
|
0
|
1254
|
|
POST
|
No, it does not has 4269 in CRS list. I was able to display this WMS layer on a base map using Jvascript API. Is there any explanation why Silverlight is not accepting to display the WMS layer? Thanks. I'm not sure why it works with the Javascript API, but the way that the WMS class works in Silverlight is that it uses your map control's spatial reference to generate GetMap requests to the WMS. One thing you can do is download the sample WMS layer code here and modify the GetUrl() method to force the spatial reference to EPSG: 4326, then use this class instead of the 2.0 API WMS class.
... View more
07-08-2010
09:24 AM
|
0
|
0
|
1011
|
|
POST
|
If you append '&request=GetCapabilities' to your WMS service URL and put it in a browser, you should get an XML response containing all the service metadata. Among the metadata, look for the <layer> tags, and inside them, the CRS tags that tell you which spatial references are supported: <CRS>EPSG:4326</CRS> for instance. If 4629 is not among them, the WMS service will reject your GetMap requests, since you specify the CRS along with the bounding box, etc.
... View more
07-07-2010
05:47 PM
|
0
|
0
|
1011
|
|
POST
|
I second that motion... We need offline support often for customer demos in locked down facilities or where the internet speed is horrific. It would be great to be able to have a local cache of some map tiles and data feeds.
... View more
07-01-2010
08:48 AM
|
0
|
0
|
1110
|
|
POST
|
This is very easily done. Search through the KML sample code and you will eventually find the code that converts a stream object into an XDocument object. You just have to write code to connect an OpenFileDialog.File.OpenRead() (Filestream) object to that routine.
... View more
06-23-2010
08:33 AM
|
0
|
0
|
600
|
|
POST
|
Wait a few days. I suspect Morten is cooking something up...
... View more
06-23-2010
08:27 AM
|
0
|
0
|
1169
|
|
POST
|
Morten's workaround worked for me. Inside the GetUrl() method of the WMS layer class, add the following line: mapURL.AppendFormat("&t={0:hhmmss}", DateTime.Now); Edit: One problem with this feature is that the browser will queue the WMS requests while the app window is not visible (minimized or on a hidden tab) and execute all of them when you make the app visible. You might want to add some Javascript to your host page to help you stop the refresh timer when the app is not visible. -Dan
... View more
06-16-2010
07:12 AM
|
0
|
0
|
1443
|
|
POST
|
Did you use a System.Windows.Threading.DispatcherTimer or a System.Threading.Timer? -Dan
... View more
06-15-2010
08:04 PM
|
0
|
0
|
1443
|
|
POST
|
Try using System.Net.WebRequest instead of WebClient:
WebRequest newRequest = System.Net.WebRequest.Create(new Uri(uri));
newRequest.Method = context.Request.HttpMethod;
newRequest.CachePolicy = new RequestCachePolicy(RequestCacheLevel.NoCacheNoStore);
WebResponse newResponse = newRequest.GetResponse();
-Dan
... View more
06-15-2010
10:12 AM
|
0
|
2
|
403
|
|
POST
|
Yes, all my test cases use the WGS84 datum. Using the Bing assembly they all visualize correctly over a 102100 map service, and with ProjNet they all show up 20km south. Thanks, Dan
... View more
06-15-2010
09:03 AM
|
0
|
0
|
985
|
|
POST
|
Are they all using the WGS84 datum? If not, I don't think you will have much luck with anything but the projection service. Why not? Obviously the ESRI.ArcGIS.Client.Bing library is able to do this in the client. Is it proprietary ? Thanks, Dan
... View more
06-15-2010
08:42 AM
|
0
|
0
|
985
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2015 10:23 AM | |
| 2 | 09-25-2015 10:36 AM | |
| 1 | 06-29-2015 08:24 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|