Select to view content in your preferred language

how create polyline with one point?

616
3
12-02-2010 02:41 AM
StefhanCampos
Deactivated User
Hi, i have this point:

so, i have starting point but no have end point, and want something like this:

trace a line with a default size, anyone know how i can do that? I also want to rotate the text vertically by the end of the polyline
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
How about creating a ControlTemplate for your Marker Symbol, that includes TextBlocks, Line and Point?

For the TextBlock, you can create your own Converter for the Binding so that value can be transformed to a text with carriage returns.  For example, "01" is transformed to "0\n1\n";
0 Kudos
StefhanCampos
Deactivated User
How about creating a ControlTemplate for your Marker Symbol, that includes TextBlocks, Line and Point?

For the TextBlock, you can create your own Converter for the Binding so that value can be transformed to a text with carriage returns.  For example, "01" is transformed to "0\n1\n";



hello Jennifer, first thanks for you attention. i didn't tried create a marksymbol because first i want trace line(i have starting point but no have end point). this issue consuming all my time, i asked again because maybe who did this issue have same problem about text.
0 Kudos
JenniferNery
Esri Regular Contributor
You said that the line will have a default size, right? With the point in the center of the symbol? I think customizing a MarkerSymbol's ControlTemplate will solve the problem.

You can look at the SymbolGallery for samples: http://help.arcgis.com/en/webapi/silverlight/samples/SymbolGalleryWeb/start.htm

Easiest way is to use ExpressionBlend to see how you want the symbol to look like and then change the properties to bind to Symbol.Size or specific Attribute.

This sample might help too: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols
0 Kudos