WP7 performance tip: translate transforms
Published by on 23.03.2012 at 19:56

In my previous blog post, I described a control called the PivotIndicator. The PivotIndicator is made of a small rectangle that is animated on an X axis: its position is updated every time the selected item of the Pivot changes. Here is the code which setup this animation:
?View Code CSHARP
1
2
3
4
5
6
7
8
var border = new Border { /* init properties... */ };
var animation = new DoubleAnimation
{
    Duration = new Duration(TimeSpan.FromSeconds(0.5)),
};

Storyboard.SetTarget(this.animation, this.border);
Storyboard.SetTargetProperty(this.animation, new PropertyPath(Canvas.LeftProperty));
The problem I noticed was that this animation wasn’t fluid. In particular, when the PivotItem contains a lot of items…     Read the full post




Windows Phone performance analysis & optimization during TechDays
Published by on 27.01.2012 at 07:57

In about 2 weeks now, I’ll have the chance to be part of the French TechDays in Paris as a speaker. This year, I’ll own a session called “Windows Phone performance analysis & optimisation” with my colleague Charlotte. The agenda looks like the following:
  • why performance analysis ?
  • device vs emulator
  • leveraging WP7 threads
  • using the VS profiler for WP7
  • tips and tricks
During the session we will use a “real” app we’re working on for a few months now (I’ll share more details after the session). We have some cool tips that haven’t been shared anywhere before, so if performance is a topic of interest for you, stat tuned ! Click on the following image for a link to the TechDays website: I’m planning to share the most of the content of this session on my blog soon after the event. Don’t hesitate to stop by and say hi…