Received what at the time seemed like a strange exception from a piece of code in a silverlight I was debugging yesterday - 'this operation can only occur on the ui thread.'What makes this strange was the fact this wasn't attempting to update any UI controls or classes bound to views, infact this was the complete opposite, this was a method trying to invoke out to javascript from a randomly assigned thread (thread pool). To compound my confusion not only was I seeing this intermittently but the action I was trying to achieve still appeared...
Thursday, 24 March 2011
Monday, 21 March 2011
Considerations when building a caching mechanism for WP7Contrib.
Posted on 14:39 by Unknown
For anyone wanting to build a cache for an application, there are several guidelines(may be rules) you want to beware of and more than likely abid by.Firstly, more than likely you are going to have an in-memory representation of the cache as well as a persisted format if the cache is to survive application restarts. Now an in-memory representation is more than likely going to be a hash-table - especially if you want acceptable retrieval time. Now this is where 'GetHashCode' comes into play and the importance of this is explained perfectly by Eric...
Thursday, 17 March 2011
WP7Contrib: RESTful communications using HttpWebRequest & Rx extensions
Posted on 14:50 by Unknown

20/03/2011 UPDATE: code samples after changes to WP7Contrib code base.Simply I want to show how we do communication with web services when using WP7Contrib.When using web services from WP7 devices you have several options on how you are going to communicate with the service. What follows are the steps required to achieve this using the WP7Contrib. We show how to use a third party web service and how this pattern is very advantageous in...
Sunday, 6 March 2011
WP7Contrib: Why we use SilverlightSerializer instead of DataContractSerializer
Posted on 07:04 by Unknown

Like all applications developed for WP7 devices we (WP7Contrib) want to get the best performance possible from any libraries or patterns we use and this applies to how we serialize and deserialize data inside the WP7Contrib. In several of the libraries which make up the WP7Contrib we require binary serialization support, specifically we use binary serialization for the isolated storage cache provider and the storage service...
Saturday, 5 March 2011
WP7Contrib: Trickling data to a bound collection
Posted on 13:04 by Unknown
Recently Rich & I've had problems with adding items to list control where the data template is chocked full of XAML goodies - triggers, opacity masks, images, overlay, loads of things I know little about... ;) The culmination of all this UI goodness when used with a bound list control is the blowing of the '90 mb limit' for WP7 devices. As I posted before, we knew the problem wasn't with the data model so we knew it was the data template, now there is plenty of coverage of issues with data templates in Silverlight and this post it...
Subscribe to:
Posts (Atom)