Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Metro XAML - Where Is LayoutTransform ?

Im authoring some Windows 8 Metro template (custom) controls and there doesnt seem to me any LayoutTransform properties on anything.

this is a real pain, as I want to rotate some text 90 desgrees, but the grid is sizing to the size of the text before the rotation.

Does anyone have an idea on how to fix this without writing lots of hacks ?

Dean

like image 788
Dean Chalk Avatar asked Mar 19 '12 08:03

Dean Chalk


2 Answers

I modified the Silverlight toolkit version and published it here

Layout transform in Windows 8 XAML

like image 79
Igor Ralic Avatar answered Nov 14 '22 20:11

Igor Ralic


LayoutTransform was gone in Silverlight too. (IMHO) I guess maybe it was usually overused or abused in WPF causing performance issues, so for better perception of the framework - it was never added to Silverlight and by extension - to WinRT.

There seems to be a workaround for that in the Silverlight Toolkit that should be easy to port - check the LayoutTransformer control. I have never used it, but it sounds like what you need.

*Edit 2017-04-24

There's a LayoutTransformControl in WinRT XAML Toolkit you could use.

like image 44
Filip Skakun Avatar answered Nov 14 '22 20:11

Filip Skakun