Thursday, 25 August 2011

Convert Text to Path in Xaml

In Expression Blend you can convert any object to a path:  Object Menu > Path > Convert to Path.

If you’re interested in the .NET code behind the scenes, here's a useful method to generate Path data from text:

ScreenShot119

ScreenShot115

Resulting in:

Path-result

Thanks to the MSDN blog for providing the base of the coding for this helper method.

0 comments:

Post a Comment