Dean Chalk
Dean Chalk

Reputation: 20481

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

Upvotes: 6

Views: 2454

Answers (2)

Filip Skakun
Filip Skakun

Reputation: 31724

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.

Upvotes: 4

Igor Ralic
Igor Ralic

Reputation: 15006

I modified the Silverlight toolkit version and published it here

Layout transform in Windows 8 XAML

Upvotes: 8

Related Questions