Bienvenue à Blogs CodeS-SourceS Identification | Inscription | Aide

Parcourir par tags

Tous les tags » .NET   (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] Debugging and fixing a bug in Windows Phone sync tool

Since a few days, I had this annoying bug in the application used to sync my Windows Phone with my desktop computer: every time I tried to synchronize podcasts, the application just crashed. After a while, I decided it would be a nice debugging exercise
Posté le par KooKiz | 0 commentaire(s)

[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)

[C#/WPF] BindingList

On va s’écarter un peu de WP7 pour un article qui s’inscrit dans la lignée du “Après 8 ans de .NET, j’en découvre encore”. Au programme, un problème assez frustrant que j’ai pu rencontrer à plusieurs reprise, dans des applications WPF. Commençons par
Posté le par KooKiz | 1 commentaire(s)
Classé sous : , ,

[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] 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)
Plus de Messages Page suivante »


Les 10 derniers blogs postés

- Simuler facilement l’envoi de mail par Blog de Jérémy Jeanson le 05-22-2013, 12:52

- ProcDump 6.0 : support du filtrage sur messages d'exceptions .NET, des filtres multiples et du ciblage par nom de service par CoqBlog le 05-20-2013, 14:50

- Votez pour le TOP 10 des influenceurs SharePoint francophones ! par Le blog de Patrick [MVP SharePoint] le 05-20-2013, 12:59

- [Conf’SharePoint] Dernier rappel ! :-) par Le blog de Patrick [MVP SharePoint] le 05-20-2013, 09:09

- [ #SharePoint 2013 ] les modèles de sites standards… par Le blog de Patrick [MVP SharePoint] le 05-20-2013, 09:03

- 10 erreurs de compréhension concernant SharePoint… par Le blog de Patrick [MVP SharePoint] le 05-20-2013, 08:27

- 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