问题
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