Positioning a TextBox or <esri:InfoWindow>

698
3
08-01-2013 08:09 AM
YurongTan
Occasional Contributor
I am working on a secondary "popup" from a MapTip to display additional information and I haven't been able to position the pop up (either TextBox or esri:InfoWindow) properply.  In fact the pop up stays at the center of the map display.  Is there a pointer out there or a sample to look at?  Thanks
0 Kudos
3 Replies
PietaSwanepoel2
Occasional Contributor
Do you refer to this InfoWindow?
http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#InfoWindowSimple
http://resources.arcgis.com/en/help/silverlight-api/apiref/api_start.htm

You would need some form of mouse-event handler to change the anchor point of the InfoWindow, eg. MouseLeftButtonDown and MouseLeftButtonUp
0 Kudos
YurongTan
Occasional Contributor
Thank you!  I was first trying to use the InfoWindow and realized that it is not that flexible as the DataTemplate must have a fixed items (or lengths).  Is there a way to programatically (C#) customize the DatTemplate and then bind/attach it to the InfoWindow?  My problem is that I have a point feature layer and each point can have as many as 35 different measurements (some have a few only).  In addition, I would like to color-code (red, green, yellow, etc.) the measurements based on their values for high, warning, and normal.  Any pointers on this?  Thanks
0 Kudos
PietaSwanepoel2
Occasional Contributor
Sounds like the easiest solution would be to have tool that contains a datagrid that you can minipulate eg. values. colours, etc
You will act on a click event , find the results and present it to the client as you want
0 Kudos