Bienvenue à Blogs CodeS-SourceS Identification | Inscription | Aide

Parcourir par tags

Tous les tags » wpdev   (RSS)

[wpdev] Memory leak with BitmapImage

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.

[WP8] Programmatically terminate a Silverlight app

Exiting programmatically as always been an issue for Silverlight applications on Windows Phone 7. A few workaround existed, from throwing an exception to referencing a XNA assembly and using the ‘Game.Exit()’ method. Windows Phone 8 brings a new API,
Posté le par KooKiz | 0 commentaire(s)

[WP8] Programmatically change the lock screen picture

Windows Phone 8 introduces a new API to allow apps to change the background picture displayed on the lock screen. The displayed picture can be picked from the application’s resources or from the isolated storage. To use this feature, you need first to
Posté le par KooKiz | 0 commentaire(s)

[WP7] Dynamically toggle PanoramaItem visibility

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
Posté le par KooKiz | 0 commentaire(s)

[WP7] IsolatedStorageException when opening a file played by a MediaElement

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
Posté le par KooKiz | 0 commentaire(s)

[WP7] Dynamically change startup page

Let’s say that you want to allow the user to customize the startup page of your application. You can easily change the startup page by editing the ‘NavigationPage’ attribute in the manifest file. But the manifest cannot be modified once the application
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , ,

[WP7] Inject a file in a xap using post-build event

Let’s say that your application is dynamically loading resources, and you have to constantly add/remove new resources during the development. In this scenario, it could be a huge-time saver to just tell Visual Studio to take the contents of a folder and
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , , ,

[WP7] Cryptic error message in XAML

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
Posté le par KooKiz | 0 commentaire(s)

[WP7] How to press the mouse on a control, and detect MouseLeftButtonUp on another

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
Posté le par KooKiz | 0 commentaire(s)

[WP7] ApplicationBar flickering when the phone theme is white

It’s an interesting issue I found on StackOverflow. Interesting because I often forget to test my applications using the Windows Phone’s white theme, so this kind of problem usually goes unnoticed until a user reports it. Create a simple WP7 application
Posté le par KooKiz | 0 commentaire(s)

[WP7] Upload a file to Dropbox using ReactiveOAuth.WP7

As I was helping @lancewmccarthy on its last application, I ran across the need to upload a file to Dropbox. While there is already a few libraries for WP7 handling this task, I couldn’t get any of them to work as expected: either they missed the file
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , ,

[WP7] ScheduledActionService.Replace: Bug or documentation error?

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: 8: ScheduledActionService.Add(reminder);
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , , ,

[WP7] Pensez à gérer la désactivation des background agent !

Une erreur que j’ai pu voir sur quelques applications publiées sur le marketplace. Il est possible pour l’utilisateur de désactiver manuellement un background agent créé par une application, en allant dans les paramètres du téléphone, –> applications
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , ,

[WP7] Windows Phone SDK 7.1 disponible

Alors que le déploiement de Mango auprès du grand public a commencé hier, Microsoft vient de publier la version finale du SDK WP7.5. Pour le télécharger, il suffit de suivre ce lien : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=2757
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , ,

[WP7] Utiliser le flash comme lampe torche

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
Posté le par KooKiz | 2 commentaire(s)

[WP7] Windows Phone Power Tools

Hier, une boite à outil fort pratique pour Windows Phone a été publiée : Windows Phone Power Tools. Cet utilitaire fourni un vaste éventail de fonctionnalités : - Affichage d’informations au sujet de votre téléphone, telles que la quantité mémoire disponible
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , ,

[WP7] Display a settings screen from a Mango application

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,
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , , ,

[WP7] Afficher un écran de paramètres depuis une application

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:
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , , ,

[WP7] NavigationService.RemoveBackEntry

Parmi toutes les nouveautés, Mango apporte une nouvelle fonction bien sympathique pour palier à certains problèmes de navigation. Prenons un exemple simple : une application avec deux pages. Lorsque l’utilisateur clique sur un bouton de la première page,
Posté le par KooKiz | 0 commentaire(s)

[WP7] Advice on Isolated Storage

No code in this blog post, I’d just like to give an advice to fellow Windows Phone 7 developers. Many applications use the isolated storage, be it to save data or to handle tombstoning scenarios. In either case, make sure that you surround your code with
Posté le par KooKiz | 0 commentaire(s)
Classé sous : , , ,
Plus de Messages Page suivante »


Les 10 derniers blogs postés

- Conf’SharePoint : 10 bonnes raisons pour ne pas la rater par Le petit blog de Pierre / Pierre's little blog le 05-14-2013, 02:24

- [Event] Soirée de lancement Agile .NET France à Lyon par Blog Agile/ALM de Vincent THAVONEKHAM le 05-13-2013, 01:29

- .NET / Debug : inspection de la mémoire d'applications .NET (dump ou processus live) : première livraison d'une librairie .NET par Microsoft par CoqBlog le 05-11-2013, 22:21

- SharePoint : Incompatibilité avec Internet Explorer 10 (IE10) par Blog Technique de Romelard Fabrice le 05-08-2013, 16:29

- AutoSPInstaller pour SharePoint 2013 maintenant disponible en “RTM” par Julien Chable le 05-06-2013, 23:30

- [TFS2010] A la recherche du Shelveset perdu par Blog de Jérémy Jeanson le 05-03-2013, 21:46

- .NET / Debug post-mortem : obtenir le fichier mscordacwks.dll correspondant à un dump quand on n'a plus d'accès direct à ce fichier par CoqBlog le 04-28-2013, 19:57

- [W8] Afficher un graphe par CPU dans le gestionnaire des tâches par Blog de Jérémy Jeanson le 04-28-2013, 17:48

- [WCF] Limiter proprement l’accès à vos ressources serveur par Blog de Jérémy Jeanson le 04-26-2013, 22:59

- Event : Je serai speaker à la Conf’SharePoint par Blog Technique de Romelard Fabrice le 04-26-2013, 12:00