Geeks With Blogs

@codingbloke
  • codingbloke Blogged: Using the AsyncOperationService with HttpWebRequest. Builds on the previous .NET Async Pattern stuff. http://t.co/B5VLg8a about 1138 days ago
  • codingbloke I haven't blogged in a while but http://t.co/jzEgzME its more on AsyncOperationService. Future posts will show more practical uses. about 1180 days ago
  • codingbloke @Pete_Brown I like "custom" mode, gives me the warm fuzzy feel that I'm in control about 1357 days ago

News
The Coding Bloke An ordinary bloke trying to keep up with the world of programming Silverlight
The AsyncOperationService and HttpWebRequest
In the previous post I droned on about how to apply the AsyncOperationService to an API conforming to the .NET Asynchronous pattern. In this post I’ll be building a more real world example. Well I say “real world” please don’t confuse that with something actually useful. Its still a little contrived and is not an example of best practice but it is something you could actually build and test. What are we going to build? We are going to build an ambitious ground breaking Silverlight app that allows ......

Posted On Saturday, September 10, 2011 2:46 PM

Using AsyncOperationService with the .NET Asynchronous Pattern
This post is about using the AsyncOperationService with .NET Asynchronous Pattern. Warning: this is another article that is likely to give you a headache. Its designed to provide full details of how things work. If you don’t want the headache then, skim the article and copy’n’paste the code from the “FromAsyncPattern” box below (it assumes you already have AsyncOperationService code). Subsequent articles will outline more real world uses which may (and I say “may” very tentatively) not be so headache ......

Posted On Saturday, August 27, 2011 6:20 PM

Simple Asynchronous Operation Runner – Revisited
Its been quite some time since I last post on the subject of the AsyncOperationService (in fact quite some since I posted period). In real world use I found some common patterns emerge that has lead me to make a few small adjustments to eliminate some common duplication I was seeing in code consuming the service. Here is the new code file for my ever so slightly improved AsyncOperationService in its entirety. AsyncOperationService using System; using System.Windows; using System.Collections.Generic; ......

Posted On Saturday, July 30, 2011 8:07 PM

Visual Tree Enumeration
I feel compelled to post this blog because I find I’m repeatedly posting this same code in silverlight and windows-phone-7 answers in Stackoverflow. One common task that we feel we need to do is burrow into the visual tree in a Silverlight or Windows Phone 7 application (actually more recently I found myself doing this in WPF as well). This allows access to details that aren’t exposed directly by some controls. A good example of this sort of requirement is found in the “Restoring exact scroll position ......

Posted On Sunday, December 19, 2010 1:32 PM

Simple Asynchronous Operation Runner – Part 2
In Part 1 I provided the code for the simple asynchronous operation runner. In this post I’ll put it to some use. First let me provide a real world scenario so that we have something to demonstrate with. The Scenario I have a desire to separate into resource dictionaries a common palette of colours from a set of styles that use these colours. The goal being that I change a pair of colours in one place and all parts of the UI using that pair will use the new colour. There may be multiple resource ......

Posted On Friday, October 15, 2010 9:32 PM

Simple Asynchronous Operation Runner – Part 1
I’ve been meaning to create a blog about asynchronous operations in Silverlight for sometime. Specifically how to create code that looks and behaves much like synchronous code that actually depends on asynchronous operations. I’ve seen quite a number of questions on Stackoverflow where developers have discovered that in many cases Silverlight only supports performing tasks asynchronously. There are number of solutions that others, more able than I, have blogged about along with excellent explanations ......

Posted On Sunday, September 12, 2010 9:55 PM

Yet another blog about IValueConverter
After my previous blog on a Generic Boolean Value Converter I thought I might as well blog up another IValueConverter implementation that I use. The Generic Boolean Value Converter effectively converters an input which only has two possible values to one of two corresponding objects. The next logical step would be to create a similar converter that can take an input which has multiple (but finite and discrete) values to one of multiple corresponding objects. To put it more simply a Generic Enum Value ......

Posted On Wednesday, June 9, 2010 8:50 PM

A Generic Boolean Value Converter
On fairly regular intervals a question on Stackoverflow like this one: Silverlight Bind to inverse of boolean property value appears. The same answers also regularly appear. They all involve an implementation of IValueConverter and basically include the same boilerplate code. The required output type sometimes varies, other examples that have passed by are Boolean to Brush and Boolean to String conversions. Yet the code remains pretty much the same. There is therefore a good case to create a generic ......

Posted On Friday, May 28, 2010 1:07 PM

Silverlight IConvertible TypeConverter
I recently answered the following question on stackoverflow: Silverlight 3 custom control: only ‘int’ as numeric type for a property? [e.g. long or int64 seems to break] I quickly knocked up the class ConvertibleTypeConverter<... that I posted in the question (listed later here as well). Afterward I fully expected to find that of the usual clever “bods who blog” to have covered this probably with a better solution than I. So far though I’ve not found one so I thought I’d blog it myself. The ......

Posted On Friday, May 14, 2010 8:44 PM

Copyright © codingbloke | Powered by: GeeksWithBlogs.net | Join free