Metro XAML - Where is LayoutTransform?

I am creating some Windows 8 Metro (custom) template templates and I don’t see any LayoutTransform properties.

This is a real pain since I want to rotate some text 90 desgrees, but the grid measures the size of the text before rotation.

Does anyone have an idea how to fix this without writing a lot of hacks?

Dean

+6
source share
2 answers

LayoutTransform also left in Silverlight. (IMHO) Perhaps in WPF this was usually abused or abused, which caused performance problems, so for better understanding of the framework it was never added to Silverlight and by extension to WinRT.

In the Silverlight Toolkit, which should be easy to port, this seems to be a workaround - check out the LayoutTransformer control . I never used it, but it sounds the way you need it.

* Edit 2017-04-24

The WinRT XAML Toolkit has a LayoutTransformControl .

+4
source

I modified the Silverlight toolkit version and published it here

Convert layout in Windows XAML

+8
source

Source: https://habr.com/ru/post/911073/


All Articles