Blogs CodeS-SourceS

Blogs, blogs, blogs et encore des blogs ! Ici les développeurs vous font
partager leurs expériences, trouvailles mais également des informations funs.
Bref la vie de tous les jours des développeurs pas forcément braqués sur du code !

Bienvenue à Blogs CodeS-SourceS Identification | Inscription | Aide
dans Rechercher

Parcourir par tags

Tous les tags » c# » Silverlight » .Net   (RSS)
Page 1 sur 6 (52 messages au total)
  • [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. I’ve never been able to find the source of the leak, so I settled for a dirty ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le février 17, 2013
  • [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, that can be used from Silverlight applications: ‘Application.Terminate()’ Using it is really ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le octobre 31, 2012
  • [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 declare it in the application’s manifest. Just add the following extension in the ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le octobre 30, 2012
  • [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 it in a much simpler way. Create a new page, and add a panorama control called ‘Panorama’. ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le juillet 1, 2012
  • [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 (var isf = IsolatedStorageFile.GetUserStoreForApplication()) 2: { ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le mai 6, 2012
  • Bing Maps for Enterprise : Migration du service de jeton

    Comme indiqué depuis septembre 2011 sur les différentes sources que ce soit le blog et site officiel, les messages envoyés aux utilisateurs ou les différents autres moyens de communication, le service de jeton autrefois utilisé par MapPoint et réutilisé dans ce même esprit par Bing Maps for Enterprise est remplacé par le service ...
    Envoyé à Blog technique de Nicolas Boonaert (Weblog) par nicoboo le mars 20, 2012
  • [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 has been published. How to define it at runtime? For this, we’ll use a class very useful in ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le février 12, 2012
  • [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 inject it into your application. I don’t think there’s an out-of-the-box way to do that, ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le janvier 12, 2012
  • [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 of the causes of the error message. 1: ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le janvier 9, 2012
  • [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 on another element. Easy enough! Just handle the MouseLeftButtonDown on each element, ...
    Envoyé à Kévin Gosse (Weblog) par KooKiz le janvier 8, 2012
1 2 3 4 5 Suivant > ... Dernier »
Propulsé par Community Server (Personal Edition), par Telligent Systems
Chargement...