Expression Design has a larger range of vector drawing tools than Blend, and 
can export as XAML, or you can copy and paste the XAML.

Keep an eye out for scaling though. Design has a habit of exporting XAML with 
an overall transform, which you could probably do without if you're 
manipulating complex forms.

shane

From: ozsilverlight-boun...@ozsilverlight.com 
[mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Joseph Cooney
Sent: Thursday, 12 July 2012 11:42 AM
To: ozSilverlight
Subject: Re: Generating path language strings

I usually use Inkscape and save as xaml. There is also a tool for 
scaling/manipulating paths, rather than nesting them inside a transform, which 
can be useful. Can provide a link if you want.

Sent from my iPhone

On 12/07/2012, at 10:23 AM, Greg Keogh <g...@mira.net<mailto:g...@mira.net>> 
wrote:
Earlier this year someone pointed me to the Styled 
ListBox<http://richapps.wordpress.com/2009/02/12/advanced-styling-wpf/> sample. 
I was quite impressed the clever trick of totally restyling the ListBox control 
and item templates into a list polygons. I managed to convert the control to 
Silverlight, but it was a pain to convert the triggers into visual states, 
remove other non-WPF properties, and I took out some of the animations as being 
overkill.

The polygon shapes are defined with path language strings which are appallingly 
difficult to write and read when they get complicated. Here is the shape of the 
US state of New Mexico for example (a very simple one):

F1 M 310.903,289.889L 228.569,281.556L 215.569,377.222L 228.903,378.222L 
229.569,371.556L 252.903,373.556L 252.903,370.556L 304.236,375.889L 
310.903,289.889 Z

I will soon need to create paths for Australian states, Melbourne suburbs and 
other arbitrary "artistic" shapes and I was wondering how to do this. I suppose 
the states and suburbs are in public government sites somewhere that I can't 
find yet (and they're probably in the wrong format for me). What about 
generating paths for shapes of my own? Is there some tool that can help me draw 
pretty shapes and get path strings for them? Blend?

Greg

_______________________________________________
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com<mailto:ozsilverlight@ozsilverlight.com>
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
_______________________________________________
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to