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
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to