Search code examples
xamlcustom-controlswindows-8microsoft-metrowindows-runtime

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


Solution

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