• Awaiting on Events

    I discovered a technique to await on events and in this post I’ll show it and describe how it works. It’s needed only in rare cases, but the technique is interesting enough to write a post about it.

    Read on →

  • Async Task vs BackgroundWorker in WPF

    In this post we’re going to see 2 different implementations for executing tasks in a background thread. This is especially useful for keeping the user interface responsive and the user delighted at all times.

    Read on →

  • Asynchronous programming in C# with WPF

    I know nothing about the Task Parallel Library and writing a blog post about this is a great opportunity to learn about it. This post won’t be exhaustive: I’ll just explore Microsoft’s recommended way of implementing asynchronous programming.

    Read on →

  • MVVM and unit testing from scratch

    In this post I’ll create the simplest application that covers the basics of MVVM in the context of unit testing. The application does just click counting - it’s the simplest app that I could think of that can be used to demonstrate view models, INotifyPropertyChanged, data binding, commands and unit testing. We will NOT be using any MVVM frameworks.

    Read on →

  • Executing the right project in Visual Studio

    Often, when you’re working you want to quickly open a file, edit that and run it so you can test it. What happens when you press F5 in Visual Studio is that it will start some other project (when you have a solution with more than 1 project). In this post you’ll learn a simple trick that allows you to start the project where the file you just edited is.

    Read on →