I am very new to the Map Suite WPF Desktop Edition 8.0 and have a few questions.
Is it possible to add your own custom WPF object to a layer in the Map Suite?
Put very simple something like:
MyControl control = new MyControl();
someWpfLayer.Add(control);
layerOverlay.Layers.Add(someWpfLayer);
wpfMap.Overlays.Add(layerOverlay);
Where MyControl contains e.g. a Grid with some ellipses and an image.
Likewise I would like to know if any help files exist for the Map Suite API?
E.g. is there anywhere where I can see some documentation about e.g. CadFeatureLayer similar to what Microsoft have on MSDN for all their classes.
Add custom WPF object
Hi Morten,
Welcome to Map Suite Forums,
hope you enjoy sharing and learning here.
As for adding WPF object to
layer. Please try code below, control will be rendered as a Marker.
var so = new SimpleMarkerOverlay();
so.Markers.Add(new Marker(0, 0) { Content = new MyContorl(), ImageSource = null });
Map1.Overlays.Add(so);
As for API document. Please refer
to wiki.thinkgeo.com/wiki/Map_S...op_Edition
, here are details about WPF Desktop Edition, and API Documentation section is
about APIs of Map Suite Core and Map Suite WPF Desktop Edition.
Hope this would be help and
any other question please feel free to let us know.
Thanks,
Kevin
Thank you for your fast reply.
It was exactly the type of code you have posted that I was looking for.
Will try it soon.
You’re welcome, Morten, if you have any question when applying these code. Please fee free to let us know.
Thanks,
Kevin