|
|
Parcourir par tags
Tous les tags » c# » Silverlight (RSS)
Page 1 sur 8 (77 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 ...
-
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 ...
-
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 ...
-
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: { ...
-
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 ...
-
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 ...
-
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, ...
-
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, ...
1 ...
|
|
|