|
|
|
|
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
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>
|
|
|
|
|