Hi,
I dragged an object to map and then at Drop i draw a image point in the EditOverlay by using value style. I get the following error
{"Unable to cast object of type 'System.Drawing.Bitmap' to type 'System.Windows.Controls.Image'."}
[System.InvalidCastException]: {"Unable to cast object of type 'System.Drawing.Bitmap' to type 'System.Windows.Controls.Image'."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "Unable to cast object of type 'System.Drawing.Bitmap' to type 'System.Windows.Controls.Image'."
Source: "WpfDesktopEdition"
StackTrace: " at ThinkGeo.MapSuite.WpfDesktopEdition.DrawingVisualGeoCanvas.BeginDrawingCore(Object nativeImage, RectangleShape worldExtent, GeographyUnit drawingMapUnit)\r\n at ThinkGeo.MapSuite.Core.GeoCanvas.BeginDrawing(Object nativeImage, RectangleShape worldExtent, GeographyUnit drawingMapUnit)\r\n at ThinkGeo.MapSuite.WpfDesktopEdition.Tile.DrawException(GeoCanvas geoCanvas, Exception exception)\r\n at ThinkGeo.MapSuite.WpfDesktopEdition.Tile.Draw(GeoCanvas geoCanvas)\r\n at ThinkGeo.MapSuite.WpfDesktopEdition.EditInteractiveOverlay.RedrawTile(LayerTile tile)\r\n at ThinkGeo.MapSuite.WpfDesktopEdition.EditInteractiveOverlay.DrawCore(RectangleShape targetExtent, RefreshType refreshType)\r\n at ThinkGeo.MapSuite.WpfDesktopEdition.Overlay.Draw(RectangleShape targetExtent, RefreshType refreshType)\r\n at ThinkGeo.MapSuite.WpfDesktopEdition.WpfMap.xdffbdec6f15e90de(Overlay xa02b1470fea9c9a6, RectangleShape x224aab0b7185a66c, RefreshType x2f080d7afcb67ec7)\r\n at ThinkGeo.MapSuite.WpfDes
ktopEdition.WpfMap.Refresh(Overlay redrawOverlay)\r\n at PSMapEditor.NewSaveMap.ObjMapClass_Drop(Object sender, DragEventArgs e) in :line 132"
TargetSite: {Void BeginDrawingCore(System.Object, ThinkGeo.MapSuite.Core.RectangleShape, ThinkGeo.MapSuite.Core.GeographyUnit)}