|
-
Dec 30th, 2011, 10:09 AM
#1
Thread Starter
Fanatic Member
[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?
-
Dec 31st, 2011, 02:37 AM
#2
Frenzied Member
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?
-
Dec 31st, 2011, 11:41 AM
#3
Thread Starter
Fanatic Member
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.
-
Dec 31st, 2011, 12:25 PM
#4
Frenzied Member
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
-
Jan 6th, 2012, 08:23 AM
#5
Thread Starter
Fanatic Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|