Custom Graphics

1665
5
11-22-2012 11:01 PM
Labels (1)
TalShapiro
New Contributor
Hello,
Hope someone could help me with the following issue -

I need to draw a pie slice Graphic in a GraphicsLayer (See attached picture). How can this be accomplished?
More generally, how are polyline/polygon Geometry MapPoints being translated to the Fill/Line symbol Path (named "Element").

Many thanks!

[ATTACH=CONFIG]19490[/ATTACH]
0 Kudos
5 Replies
JesúsVillajos1
New Contributor II
I also need to draw my custom Graphics such as a ring or bulleye.
How can customize the graphics?

[ATTACH=CONFIG]19491[/ATTACH]
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

You can use a ControlTemplate to provide a custom symbol - see http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Cli... for more information.

Cheers

Mike
0 Kudos
TalShapiro
New Contributor
Hi Mike,
Drawing a custom marker or changing attributes of a Line/Fill default Path is pretty straightforward.
My goal, however, is to generate a custom path based on some custom geometry. The path should scale by zoom in/out.

Could you advise?
0 Kudos
MichaelBranscomb
Esri Frequent Contributor
Hi,

In that case you can simply programmatically build up Polyline geometries by specifying their Paths property: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Cli....

Cheers

Mike
0 Kudos
TalShapiro
New Contributor
But what if I don't need to draw a simple polyline/polygon?
I need to draw a path with an arc - see attached picture above.

The default mechanism that translates the Geometry MapPoints collection to a polyline/polygon Path doesn't seem to suite my needs.
My question is if there's a way to customize this mechanism and draw custom paths on the map.
0 Kudos