Duncan Watts

England, United Kingdom

duncanwatts.com

Age: 29

.NET software developer, specialising in Silverlight and mobile application development.
Feb
28
awarded Nice Answer
Feb
27
awarded Caucus
Feb
8
awarded Yearling
Jan
25
comment Handling timeout exceptions when calling WCF services from Silverlight
@rage ahh that was the problem I was having originally, it wasn't making it to that point! Looks to be working fine for you then :)
Jan
24
comment Handling timeout exceptions when calling WCF services from Silverlight
@rage afraid not, think I just left it with the exception handling in the Reference
Jan
12
asked How to process audio data from sound card output using Bass.NET
Jan
7
comment Best strategy to target .NET 4 from a NuGet package with a portable class library
Are you sure XElement is not supported with PCL? I know it wasn't on an earlier version of PCL, but I have PCL's which make extensive use of XElement.
Dec
13
accepted How to centre an item over a point in a Canvas?
Dec
11
answered How to centre an item over a point in a Canvas?
Dec
11
comment How to centre an item over a point in a Canvas?
Wait, implementing an attached behaviour that updates the Canvas Left/Top properties while keeping the original x,y is the "non complicated setup"? Would've thought translating it by half its width/height is far simpler!
Dec
11
asked How to centre an item over a point in a Canvas?
Nov
6
accepted Approach for binding on a MVVM application using Portable Class Libraries
Nov
4
answered Approach for binding on a MVVM application using Portable Class Libraries
Nov
4
comment Approach for binding on a MVVM application using Portable Class Libraries
I admit it's not standard, but in this case my model is a collection of key value pairs, where the key I need to bind to isn't known until runtime. I think I've got a workable version, I'm just trying to add in some IValueConverter support as well, although I'll probably have to add in my own interface as it doesn't look like IValueConverter exists in PCL either :)
Nov
4
comment Approach for binding on a MVVM application using Portable Class Libraries
It's nothing more complicated than binding a property on a view model to the model which is exposed using a dictionary that exposes NotifyCollectionChanged. I have included sample code which creates this binding when I was using a class derived from Control to handle this, but I think I'm going to have to do some manual wiring up to handle this, as I have neither a DependencyProperty or Binding, was hoping for something a bit smarter but there you go.
Nov
4
comment Approach for binding on a MVVM application using Portable Class Libraries
I am yes, I need to databind from my ViewModel to an Observable IDictionary on the Model. The article you link to doesn't describe my scenario. I imagine I'll need to create a wrapper that hooks up to the INotifyCollectionChanged to update the ViewModel but that seems quite a messy approach seeing how simple using Binding was previously.
Nov
4
asked Approach for binding on a MVVM application using Portable Class Libraries
Aug
29
answered Format for displaying float?
Jul
12
accepted Cannot run LightSwitch after getting out of TFS
Jul
12
answered Cannot run LightSwitch after getting out of TFS
1 2 3 4 5