Oli Trenouth

WPF: Drag Parent Window Behaviour

Just a quick post this time: I had a need to be able to reposition a WPF window when I click and dragged on a particular UIElement. The aim was to recreate the behaviour of clicking and dragging on a standard Windows title bar (in my case, I was implementing

C#: Convert the current time to FFXIV's Eorzea Time

I was intrigued by a post on Stack Overflow today where a developer was asking how to convert the current time to Eorzea Time, a fictional timebase used in Final Fantasy XIV’s persistent game world. I’ve never played FFXIV – and probably never will, but I was intrigued by

C# async-await: Common Deadlock Scenario

If you’re new to the async and await keywords in C# and .NET, then it’s likely you will eventually stumble across this deadlock scenario, which is difficult to debug if you’re not familiar with how async and await work under the hood. Consider this example asynchronous method

MVVMLight SimpleIoC: Design-time Error

If you’re using the MVVMLight toolkit within your WPF project, you may have come across this error message if you’re using the SimpleIoC container to help provide design-time data when working in Blend for Visual Studio: Typically within your ViewModelLocator, you would have some code like this: /// <

A New Beginning

Wow, has it really been over two years since I last posted something to my blog? I have no idea where that time has gone … well, actually – I do have a tiny excuse. In October 2013 my wife gave birth to our first, beautiful baby girl, Ellie. It’s been

Oli Trenouth © 2026