Philip Hendry's Blog
Sporadic musings from Philip Hendry

Updating a WPF Control Whenever the DataContext Changes

Jun 4, 2014 • • 1 min read

I’ve been writing customised versions of the built-in WPF controls for a specific project I’m working on that isolate specific requirements for the controls in one place rather than having that declared in the XAML. However, one of the obstacles to overcome was receiving a notification whenever the DataContext changes and, more importantly, is initial set, so I can set up the controls bindings. In the full example included below this includes fetching the list of ComboBox items from an enumeration which is the data type of the model item being bound to.  Read →

AngularJS Directive Techniques Learnt from a TinyMCE Directive

Jun 2, 2014 • AngularJS • 3 min read

I’ve been looking at a TinyMCE directive that made me realise there are a number of techniques used there that would be useful to document. The directive is a great example of producing clean interfaces between AngularJS and other controls.  Read →

Submitting dynamic JSON to ASP.NET WebAPI

May 27, 2014 • ASP.NET, WebAPI • 1 min read

Submitting dynamic JSON to ASP.NET WebAPI  Read →