|
|
Parcourir par tags
Tous les tags » C# » Windows Phone 7 (RSS)
Page 1 sur 4 (33 messages au total)
-
There’s a memory leak that has been bothering me for a while in my Imageboard Browser app. The scenario is simple: a slideshow feature, where a new picture is loaded from an url every few seconds. After a while, the app crashes with an OutOfMemory exception. I’ve never been able to find the source of the leak, so I settled for a dirty ...
-
A strange issue with the Panorama control, that has been brought to my attention by @lancewmccarthy, and which has also been encountered by some people on StackOverflow.
The original scenario was a bit too complex for a blog post, but we can reproduce it in a much simpler way.
Create a new page, and add a panorama control called ‘Panorama’. ...
-
Today we’ll dig a little into Windows Phone’s base class library, thanks to a question I found on stack overflow.
The problem occurs with this simple code, used to load a music file from the isolated storage, and play it with a MediaElement: 1: using (var isf = IsolatedStorageFile.GetUserStoreForApplication())
2: { ...
-
Unexpected NONE in parse rule ElementBody ::= ATTRIBUTE* ( PropertyElement | Content )* . ENDTAG..
Best. Error message. Ever. Thanks Silverlight.
So, what’s going on?
For the sake of all the devs who’ll come to this page using Google, let’s describe one of the causes of the error message. 1: ...
-
Another issue I found on StackOverflow, which is way more tricky that it seems.
Let’s say we have a Silverlight WP7 application, and we want to add a drag&drop scenario. The user first taps an element, drags his finger to another, and raises his finger on another element. Easy enough! Just handle the MouseLeftButtonDown on each element, ...
-
Let’s consider this simple code: 1: var beginDate = new DateTime(2011, 12, 01);
2: var endDate = new DateTime(2011, 12, 02);
3:
4: var reminder = new Reminder(''Test'');
5: reminder.BeginTime = beginDate;
6: reminder.ExpirationTime = endDate;
7:
...
-
This article is also available in english.
Dans les dernières applications Windows Phone publiées sur lesquelles j'ai travaillé, comme Foursquare, Flickr ou TuneIn (et d'autres sont à venir), toutes ont des Live Tiles, à la fois en mode Pull et générées localement. Mais il y a quelques petites choses à savoir pour les utiliser efficacement, ...
-
Windows Phone 7 ne proposait jusque-là pas d’API permettant de contrôler l’allumage du flash, aussi toutes les applications de prétendues lampe torche se contentaient d’afficher une image blanche sur l’écran. Mango offre un plus grand contrôle sur la camera, mais toujours pas de moyen direct de piloter le flash. Cependant, une solution de ...
-
This is one pretty sweet feature of Mango, yet it is still widely unknown. You can now display a settings page from an application. How? Simply by using the ConnectionSettingsTask class.
It’s very easy to use: just set the ‘ConnectionSettingsType’ property, call the ‘Show’ method, and you’re done! 1: var task = new ...
-
Une nouveauté bien sympathique du SDK Mango qui est passée relativement inaperçue. Il est désormais possible d’afficher certains écrans de réglalges depuis une application, à l’aide de la classe ConnectionSettingsTask.
Son utilisation est très simple: instancier la classe, indiquer quel écran de réglages doit être affiché, et appeler la ...
1
|
|
|