Bookmark and Share Share...    Subscribe to this feed Feed   About Christian Moser  


WPF Geometry Transformation Tool

The geometry transformer is a simple tool I wrote to scale-, translate- and rotate-transform a geometry in the path mini language.

Simply paste the geometry string into the input textbox and specify the transform parameters. After pressing "Transform" the output textbox shows the translated geometry string. This is very useful to transform simple geometries like an expanded/collapsed chevron used in an expander template.

Click here to download the Geometry Transformer




Last modified: 2008-10-28 15:09:03
Copyright (c) by Christian Moser, 2011.

 Comments on this article

Show all comments
x
Commented on 4.April 2009
Hmmm, I checked a "popular" article and reading without comprehension on a mini language, then I noticed the search engine deceiving comments :D
wpf
Commented on 1.July 2009
can you please tell me the logic for this? i want to implement this in a vector drawing application
micaleel
Commented on 1.August 2009
This is nice. Can you make the source available please?
Jawahar
Commented on 2.December 2009
It'll be nice if there is source code too...
mastermind
Commented on 26.January 2010
With WPF, you can tranform elements by using RenderTransform.
you can rotate, scale, and move them freely. I'm sorry I have no further information, I haven't tried it yet. Look here for example:
http://www.codeguru.com/csharp/csharp/cs_misc/userinterface/article.php/c12221/
Yuri
Commented on 3.May 2010
Perfect!! Was looking for the path of a chevron and I even got the tool to rotate it as a bonus! :D Thanks a lot.
hi
Commented on 20.July 2010
<StackPanel OverridesDefaultStyle=\"True\">
<Button>
<Button.Background>
<SolidColorBrush x:Name=\"MyBrush\" Color=\"Orange\" >

</SolidColorBrush>
</Button.Background>
<Button.Triggers>
<EventTrigger RoutedEvent=\"Button.Click\">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetName=\"MyAnimatedBrush\"
Storyboard.TargetProperty=\"(Brush.Opacity)\"
From=\"1\" To=\"0\" Duration=\"0:0:5\" AutoReverse=\"True\" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>
</StackPanel>
Haribabu
Commented on 14.September 2010
Excellent Artical i have ever seen
rude
Commented on 1.December 2010
even my 3 year old child would created this type of scrap application.
jogi
Commented on 15.March 2011
it is good could i have material for this

Name
E-Mail (optional)
Comment