locked
I want to ask about the reaction of RenderTransform at LoadState() function

    Question

  • Hi,

    I have pages A and B.

    Page B will set a source to an image Control at LoadState() function and present.

    This image control is already applied RenderTransform on xaml code. For example, I set the ScaleX is 2 and ScaleY is 2.

    When I navigate page from A to B, I see the original size of this image presented first and then see the applied RenderTransform image quickly.

    Is this an expected behavior?

    I expect what I see is an already applied RenderTransform image, not see the original image first and then see the applied RenderTransform image.

    Is there any method to let me present the applied RenderTransform image directly?

    PS. Another found is not only applied RenderTransform on Image, if I applied RenderTransform on a Button Control.
    It has the same behavior.

    Thanks.







    • Edited by NeilCheng Tuesday, September 04, 2012 3:05 PM
    Tuesday, September 04, 2012 12:31 PM

All replies

  • Hello,

    I cannot reproduce this issue.

    Is your Visual Studio version is RTM? Or you can upload your project to
    http://skydrive.live.com/

    It is not necessary that you send out the whole of your project. We just need a simplest sample to reproduce the problem. You can remove any confidential information or business details from it.

    Best regards,
    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, September 06, 2012 9:42 AM
  • Hello Jesse,

    Yes, I am using RTM.

    And I have another found.

    If the applied RenderTransform button put at a "Blank page", there is no issue.

    But if this button put at "Basic page", this issue can be reproduced.

    So I put a RenderTransform button at a Basic Page in this project. Please take a look

    https://skydrive.live.com/redir?resid=DECDD957DAED50DE!193&authkey=!AMo5SYVlb7Ft6Jc


    Thanks.



    • Edited by NeilCheng Thursday, September 06, 2012 10:15 AM
    Thursday, September 06, 2012 10:10 AM
  • Hello,

     

    How about start the StoryBoard in OnNavigatedTo Event?

     

    Best regards,

    Jesse



    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, September 11, 2012 9:24 AM
  • Hi,

    Sorry, I didn't know how to do that.

    The project I put only has a RenderTransform button at the Basic Page. (The Baisc Page is added from "Project-> Add-> New Item-> Windows Store-> Basic Page")

    The button code is

            <Button x:Name="Play_Button" Content="&#xE102;" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="654,279,0,0" Grid.Row="1" Width="100" Height="100" Style="{StaticResource AppBarButtonStyle}" RenderTransformOrigin="0.5,0.5">
                <Button.RenderTransform>
                    <CompositeTransform ScaleY="5" ScaleX="5"/>
                </Button.RenderTransform>
            </Button>

    There is no StoryBoard  in this code.

    Could you please give a example how to do that?

    Thanks.


    • Edited by NeilCheng Tuesday, September 11, 2012 10:55 AM
    Tuesday, September 11, 2012 10:55 AM