RE: Generating path language strings
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. You're right. I rarely use Expression Design except to make some simplistic images with coloured shapes. I read the F1 help on paths, creating and found it quite easy to make some pretty shapes, then export as XAML WPF Resource Dictionary. I get more than I need, but the path string I want is inside. This technique will be fine for my modest upcoming needs. Ooops! I just noticed that the coordinates of the points are slightly offset. I made a rectangle that snapped into the top-left and you can see it's not a 0,0. Geometry=F1 M 152.167,108.167L 0.5,108.167L 0.5,0.49998L 152.167,0.49998L 152.167,108.167 Z I guess I can live with this quirk. The technique of Convert bitmapped images to paths might be useful. Joseph, thanks for pointing out the existence of inkscape. It's a shame that SVG scalable vector graphics aren't useful in WPF or Silverlight development. Thanks Greg ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
Generating path language strings
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 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
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 wrote: Earlier this year someone pointed me to the Styled ListBoxhttp://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 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Generating path language strings
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.netmailto:g...@mira.net wrote: Earlier this year someone pointed me to the Styled ListBoxhttp://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.commailto:ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
RE: Generating path language strings
Oh, Expression Design can also trace a bitmap to produce a vector which SOMETIMES works well. From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Shane Morris (Automatic Studio) Sent: Thursday, 12 July 2012 12:05 PM To: ozSilverlight Subject: RE: Generating path language strings 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.commailto:ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com]mailto:[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.netmailto:g...@mira.net wrote: Earlier this year someone pointed me to the Styled ListBoxhttp://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.commailto:ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
Re: Generating path language strings
If you're keen to trace mapping into vector than you're better of taking out the old cheque book and buying some ESRI love. As from memory they have all of this already in place and can allow you to suck in their maps in XAML form into your apps. I've only dabbled with it but getting the mapping + borders into XAML form is pushing the boundaries of XAML. Everything is doable yet is it worthwhile is the question? --- Regards, Scott Barnes http://www.riagenic.com On Thu, Jul 12, 2012 at 12:07 PM, Shane Morris (Automatic Studio) sh...@automaticstudio.com.au wrote: Oh, Expression Design can also trace a bitmap to produce a vector which SOMETIMES works well. ** ** *From:* ozsilverlight-boun...@ozsilverlight.com [mailto: ozsilverlight-boun...@ozsilverlight.com] *On Behalf Of *Shane Morris (Automatic Studio) *Sent:* Thursday, 12 July 2012 12:05 PM *To:* ozSilverlight *Subject:* RE: Generating path language strings ** ** 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 wrote: Earlier this year someone pointed me to the Styled ListBoxhttp://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 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight ___ ozsilverlight mailing list ozsilverlight@ozsilverlight.com http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight