Using Prism and MVVMLight to implement the MVVM pattern in WPF

In my previous post, I created a small Windows Presentation Foundation (WPF) application demonstrating Storyboard Animations where I also described how and why to Model-View-ViewModel (MVVM) pattern to the code. Recapping, the benefits of adopting the MVVM pattern include providing a separation of concerns between the application logic and the presentation logic and … Continue reading

WPF Storyboard Animations – part two

In part one I described how to control Storyboard animations using triggers.  I created a demo application to provide an example use case.  In this post I will discuss converting the demo application to adopt the Model-View-ViewModel (MVVM) pattern as well as describing why this is a worthwhile exercise. MVVM What is MVVM?  It … Continue reading

WPF Storyboard Animations – part one

In my previous post I described how DataTrigger and MultiDataTrigger can be used to customise the style of a UserControl . Now I want to expand on the usage of these triggers, specifically to control Storyboard  animations. In this post I will describe how to achieve this using dependency properties (DP) and logic … Continue reading

Continuations using C++11

PPL Task While playing with the concurrency features in C++11, I noticed that there wasn’t any support for continuations.  As a learning exercise I decided to develop something similar to tasks in The Parallel Patterns Library (PPL), where a task  can run asynchronously and execute a continuation upon completion using the then  member … Continue reading

Binary Floating Point Operations – part two

King Bromeliad

Previously we saw how to convert a float to a binary value as well as how to extract the relevant integer and fractional parts from that binary value.  We also saw the rules and logic for carrying out addition and subtraction.  Now we will look at multiplication and division of these binary … Continue reading

Binary Floating Point Operations – part one

Floating Points

Have you ever wondered how floating point operations are actually represented on a computer?  No? Me neither 🙂 However I have been reading a book called ‘Mathematics and Physics for Programmers’ by Danny Kodicek and the first chapter covers this.  For one of the exercises it recommends writing code to … Continue reading

Producer-Consumer Pattern Implementations: AAL v STL

Producers and Consumers

I have come across a few good examples of the Producer-Consumer pattern, however they tend to use contrived examples that don’t correlate well to a real world example.  I realise that the examples are generally contrived for the sake of brevity and in order to keep them clear and concise.  I admit that the … Continue reading

Testing Maya PyMEL Tools


I recently worked on a tool to wrap the creation of Autodesk Maya Constraints.  I wanted to be able to validate the functionality of the tool without testing the GUI.  Visual Studio (currently VS2013) is my IDE of choice and I really like the Test Explorer that is provided in VS … Continue reading

Multithreading in C# .Net – part three

concurrency testing framework

In the part one and part two I have described various threading and synchronisation methods that could be used to solve the scenario in the program.  In this post I will detail how I validated the code through xUnit and CHESS.  I will also describe other threading methods that weren’t suitable … Continue reading