locked
Expression blend and Rendertransform RRS feed

  • Question

  • I have the following objects in an XAML file:

                <Canvas RenderTransform="1,0,0,1,222.568,-46.2946">
                    <Path Fill="#4CFFFFFF" Data="M0,300.35C0,303.82 6.69,314.47 18.09,314.47 27.57,309.99 38.88,300.33 49.32,288.19 44.96,286.22 40.38,284.13 35.97,282.08 22.14,291.77 8.69,297.9 0,300.35z M41.49,278.04L54.16,282.31C66.52,266.6 76.95,247.79 80.52,230.73 71.5,250.64 56.61,266.45 41.49,278.04z"/>
                </Canvas>

    Expression Blend report error for RenderTransform="1,0,0,1,222.568,-46.2946" attribute and show this Canvas in wrong position.

    But, when I compile my Silverlight project and run it, then silverlight show this Canvas in good position, and not report probem.

    RenderTransform attribute is not implemented in ExpressionBlend?

     

     

    Saturday, May 8, 2010 11:44 AM

All replies

  •  

    Do like this and set the properties of the render transform under each transform type:

    <Canvas RenderTransformOrigin="0.5,0.5">
                <Canvas.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="2"/>
                        <TranslateTransform X="-1"/>
                    </TransformGroup>
                </Canvas.RenderTransform>
                    <Path Fill="#4CFFFFFF" Data="M0,300.35C0,303.82 6.69,314.47 18.09,314.47 27.57,309.99 38.88,300.33 49.32,288.19 44.96,286.22 40.38,284.13 35.97,282.08 22.14,291.77 8.69,297.9 0,300.35z M41.49,278.04L54.16,282.31C66.52,266.6 76.95,247.79 80.52,230.73 71.5,250.64 56.61,266.45 41.49,278.04z"/>
                </Canvas>

    Monday, May 10, 2010 2:57 PM