默认的RenderTransform Converter语法 [英] Default RenderTransform Converter syntax
问题描述
我有一个应用了RenderTransform的画布,如下所示:
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.
推荐答案
由于RenderTransform
是 TransformConverter
继而可能会创建
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"/>
我不必要地继续检查代码,转换器调用 Transform.Parse
:
I unnecessarily went ahead and checked the code, the converter calls Transform.Parse
:
从以下位置创建一个新的 Transform 指定转换矩阵的字符串表示形式.
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.
这篇关于默认的RenderTransform Converter语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!