Results 1 to 5 of 5

Thread: [RESOLVED] WP7 PivotTables PanoramaPage Transitions Slow performance

  1. #1

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Resolved [RESOLVED] WP7 PivotTables PanoramaPage Transitions Slow performance

    Not sure if i'm doing something wrong but in a demo project i'm getting a very slow performance during transitions.

    Code:
        <toolkit:TransitionService.NavigationInTransition>
            <toolkit:NavigationInTransition>
                <toolkit:NavigationInTransition.Backward>
                    <toolkit:SwivelTransition Mode="BackwardIn"/>
                </toolkit:NavigationInTransition.Backward>
                <toolkit:NavigationInTransition.Forward>
                    <toolkit:SwivelTransition Mode="ForwardIn"/>
                </toolkit:NavigationInTransition.Forward>
            </toolkit:NavigationInTransition>
        </toolkit:TransitionService.NavigationInTransition>
        <toolkit:TransitionService.NavigationOutTransition>
            <toolkit:NavigationOutTransition>
                <toolkit:NavigationOutTransition.Backward>
                    <toolkit:SwivelTransition Mode="BackwardOut"/>
                </toolkit:NavigationOutTransition.Backward>
                <toolkit:NavigationOutTransition.Forward>
                    <toolkit:SwivelTransition Mode="ForwardOut"/>
                </toolkit:NavigationOutTransition.Forward>
            </toolkit:NavigationOutTransition>
        </toolkit:TransitionService.NavigationOutTransition>
    The transition works fine but when doing them from and into other Panoramas, after the transition finishes, it takes like 1 sec to show the panorama, it looks like a delay.
    I did try CacheMode="BitmapCache" but no luck.

    Version: WP7.1

    panorama code:
    Code:
    <Grid x:Name="LayoutRoot" CacheMode="BitmapCache">
            <controls:Panorama Title="this is a long title for a big amount of items..." CacheMode="BitmapCache">
                <controls:Panorama.Background>
                    <ImageBrush ImageSource="backgroundIMG.jpg" />
                </controls:Panorama.Background>
                <!--Panorama item one-->
                <controls:PanoramaItem Header="item1" Background="Aqua" Opacity="0.4" CacheMode="BitmapCache">
                    <Grid/>
                </controls:PanoramaItem>
                <controls:PanoramaItem Header="item2"  Background="Blue"  Opacity="0.4" CacheMode="BitmapCache">
                    <Grid/>
                </controls:PanoramaItem>
                <controls:PanoramaItem Header="item3"  Background="Green"  Opacity="0.4" CacheMode="BitmapCache">
                    <Grid/>
                </controls:PanoramaItem>
                <controls:PanoramaItem Header="item4"  Background="Lime"  Opacity="0.4" CacheMode="BitmapCache">
                    <Grid/>
                </controls:PanoramaItem>
                <controls:PanoramaItem Header="item5"  Background="DarkOrange"  Opacity="0.4" CacheMode="BitmapCache">
                    <Grid/>
                </controls:PanoramaItem>
            </controls:Panorama>
        </Grid>
    I did read that Opacity will slow down the transitions, i did already try to take out the opacity and it didn't change a thing.

    Am i doing something wrong?
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: WP7 PivotTables PanoramaPage Transitions Slow performance

    Is this on a device or an emulator?
    Panorama do take a lot of memory, depending on the background.

    Start simple - is that slow then?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Re: WP7 PivotTables PanoramaPage Transitions Slow performance

    on the emulator and on the device. Actualy on the device it's a bit faster but not as fast as expected.
    Without any animation it is also slow, not as slow as with animation ofc.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: WP7 PivotTables PanoramaPage Transitions Slow performance

    If you have a large number of pages in the panorama - it will take time.

    Try a test with a one page panorama and then start increasing
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  5. #5

    Thread Starter
    Fanatic Member TDQWERTY's Avatar
    Join Date
    Oct 2003
    Location
    Oporto & Leiria, Portugal / Luanda, Angola
    Posts
    972

    Re: WP7 PivotTables PanoramaPage Transitions Slow performance

    My bad, i had NavigationInTransition and NavigationOutTransition on all the xaml pages, it seems that the main should not have. I took the animation out and the application miraculously started working much faster.
    ::Winamp 5.xx id3v2 & modern skin support::
    ::NetCF DataGrid Programatically Scroll Example::
    Don't forget to rate posts from those who helped you solving your problem, clicking on and rating it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width