rotating a button in blend within a stackpanel
Just to clarify what you are asking, the problem you face looks similar to the following image:
http://img508.imageshack.us/img508/6971/capturexm1.png (http://imageshack.us)
http://img508.imageshack.us/img508/6971/capturexm1.2bbf96dad6.jpg (http://g.imageshack.us/g.php?h=508&i=capturexm1.png)
What you are interested in doing is have the stackpanel fit all objects snugly without leaving that huge gap on both the left and right sides of the rotated button?
Cheers!
Kirupa =)
Thanks for taking a look.
I have just managed to solve the prob so might as well post the info, turns out the problem is that blend assumes the less processor heavy action the RenderTransform, which happens after layout. But instead I just need to use LayoutTransform which happens before layout and is taken into account during layout. So after rotating I just need to change the XAML to use the word LayoutTransform instead of RenderTransform - typical of XAML very simple if you know!
For example with a simple case of just rotation a textfield with some borders.
eg
A forum for Blend/WPF/C#/etc. is in the pipeline. I'm currently writing several tutorials covering those topics http://www.kirupa.com/net/index.htm and http://www.kirupa.com/blend_wpf/index.htm Once I get enough tutorials, then it makes sense to have a forum for them.
Also, if you have any suggestions for future Blend tutorials, feel free to let me know :)
#If you have any other info about this subject , Please add it free.# |

