PLATFORM VERSION INFO
Windows : 5.2.3790.131072 (Win32NT)
Common Language Runtime : 2.0.50727.3053
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES
Deployment url : http://demos.telerik.com/wpf/
Application url : http://demos.telerik.com/wpf/Telerik.Windows.Examples.exe.manifest
IDENTITIES
Deployment Identity : Telerik.Windows.Examples.xbap, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil
Application Identity : Telerik.Windows.Examples.exe, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil, type=win32
APPLICATION SUMMARY
* Online only application.
* Browser-hosted application.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* An exception occurred while downloading the application. Following failure messages were detected:
+ Downloading http://demos.telerik.com/wpf/Telerik.Windows.Examples.exe did not succeed.
+ The operation has timed out
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
No phase information is available.
ERROR DETAILS
Following errors were detected during this operation.
* [3/10/2010 4:34:48 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading http://demos.telerik.com/wpf/Telerik.Windows.Examples.exe did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()
--- Inner Exception ---
System.Net.WebException
- The operation has timed out
- Source: System
- Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
<Window x:Class="TelerikStackoverflowRepro.MainWindow" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" Title="MainWindow" Height="350" Width="525"> |
<Grid> |
<telerik:RadSlider Name="NumericSlider" Minimum="{Binding Minimum}" Maximum="{Binding Maximum}" |
SelectionEnd="{Binding SelectionEnd, Mode=TwoWay}" SelectionStart="{Binding SelectionStart, Mode=TwoWay}" IsSelectionRangeEnabled="True"/> |
</Grid> |
</Window> |
using System; |
using System.Windows; |
namespace TelerikStackoverflowRepro |
{ |
public partial class MainWindow : Window |
{ |
public MainWindow() |
{ |
InitializeComponent(); |
var data = new SelectionData(); |
data.Initialize(); |
this.DataContext = data; |
} |
} |
public class SelectionData |
{ |
private int min; |
private int max; |
private int selectionStart; |
private int selectionEnd; |
public int Minimum |
{ |
get |
{ |
return min; |
} |
set |
{ |
min = value; |
Console.WriteLine("Minimum set to " + min); |
} |
} |
public int Maximum |
{ |
get |
{ |
return max; |
} |
set |
{ |
max = value; |
Console.WriteLine("Maximum set to " + max); |
} |
} |
public int SelectionStart |
{ |
get |
{ |
return selectionStart; |
} |
set |
{ |
selectionStart = value; |
Console.WriteLine("SelectionStart set to " + selectionStart); |
} |
} |
public int SelectionEnd |
{ |
get |
{ |
return selectionEnd; |
} |
set |
{ |
selectionEnd = value; |
Console.WriteLine("SelectionEnd set to " + selectionEnd); |
} |
} |
public void Initialize() |
{ |
Minimum = 6; |
Maximum = 12; |
} |
} |
} |
I'm using the RadMap control for an address location project. From a list, the user selects an address (lat, lon) and a Bing map is centered in the RadMap control. This works just fine. The map is drawn with the selected address centered in the RadMap control.
Now, I want to add a pushpin at the address location. Using the code below, my image is inserted but not at the correct location. The center of the 16x16 pushpin is actually the upper left corner of the RadMap control. The pushpin needs to be in the center (at least initially) of the RadMap. If the user zooms and/or pans, the pushpin also needs to pan/zoom in order to show the selected address.
This does not appear to an issue with screen coordinates vs. geographic coordinates. The upper left corner of the RadMap is 300,400 and the geographic coords are +45 (N), -90 (W). If I move the RadMap around in design and run the app again, the pushpin is always in the upper left corner.
What am I doing wrong?
Thanks,
Scott
radMap1.Provider = new BingMapProvider(MapMode.Road, true, BingMapsKey); |
radMap1.Center = new Location(selectedResult.Latitude, selectedResult.Longitude); |
radMap1.ZoomLevel = 15; |
MapPinPoint pinPoint = new MapPinPoint() |
{ |
Background = new SolidColorBrush(Colors.White), |
Foreground = new SolidColorBrush(Colors.Red), |
FontSize = 14, |
ImageSource = new BitmapImage(new Uri(@"C:\Users\XXX\Desktop\location_16x16.png", UriKind.Absolute)) |
}; |
MapLayer.SetLocation(pinPoint, new Location(selectedResult.Latitude, selectedResult.Longitude)); |
InformationLayer layer = new InformationLayer(); |
layer.Items.Add(pinPoint); |
radMap1.Items.Add(layer); |
<radInput:RadDatePicker Name="myDatePicker" /> |
<Label Content="{Binding ElementName=myDatePicker, Path=SelectedDate}" /> |