Default RenderTransform Converter syntax

本小妞迷上赌 提交于 2020-01-01 12:42:09

问题


I have a canvas with a RenderTransform applied like so:

<Canvas RenderTransform="0.1,0,0,-0.1,0,913">

Can anyone tell me what these values mean? I can't seem to find what converter is being used to parse these values.


回答1:


As the RenderTransform is a Transform it probably uses the TransformConverter which in turn probably creates a MatrixTransform; from its documentation:

<object property="m11, m12, m21, m22, offsetX, offsetY"/>

I unnecessarily went ahead and checked the code, the converter calls Transform.Parse:

Creates a new Transform from the specified string representation of a transformation matrix.

For more information, see the XAML Attribute Usage section of the MatrixTransform class page.



来源:https://stackoverflow.com/questions/12359536/default-rendertransform-converter-syntax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!