One of my colleagues suggested avoiding the use of any gradients in mobile applications, because phones cannot handle the workload needed to render gradients on buttons / backgrounds, etc. I have not seen any freezes or anything while rendering the buttons, but are there any gradients that I should avoid?
It depends on where you use it. If you are comparing SolidColorBrush with a GradientBrush course, the platform needs more work to render the gradient, but this is a slight performance difference.
The only case I can think of is suppose that you use a complex gradient in a large ListBox and use it inside ListBoxItems, which forces you to create such gradients. In this case, I would prefer to replace the gradient with low quality JPEG. JPEG (image) will give me more system caching automatically and the list will work better than you provide a vector gradient there.
But if these are separate buttons or some other control style, it is quite possible to use gradients.
More of this kind of advice can be found on my blog here - http://jobijoy.blogspot.com/2011/05/wp7dev-tip-2-few-things-to-remember-on.html
, , WP7, , . HTC Trophy,
- - . , .
WP7 Silverlight Silverlight, , , WPF. WPF , - . , , .
, , , . 4 (1, ) 5 (4, , 3, , ). . , . , , Microsoft - .