Home / WPF

WPF

HMI with C# and WPF part 2: Navigation with PRISM

This article is part of a series that explains how to write an HMI with C# and WPF. Part 1: getting started with MVVM and plc driver Part 2: this article Navigation in WPF is one of the most complicated topics, because it can be implemented in many different ways, ...

Read More »

WPF navigation with dependency injection (DI/IOC): part 2

This article explains how to create dialogs and modal windows in a WPF application that uses dependency injection. We will use services and factories to abstract the creation of windows and MessageBoxes. We will also see how to write unit tests for MVVM navigation. This is the second part of ...

Read More »

WPF navigation with dependency injection (DI/IOC): part 1

This article explains some approaches to create the architecture for a WPF application when using dependency injection. In particular we will see how to navigate through views and how to deal with dialogs, both windows and system dialogs. This article is divided in 2 parts. Part 1 (this article): Creation ...

Read More »

Create an MSI/Setup Package for C# with WiX Toolset

WiX Toolset is a free installer. It is xml-based, which means that instead of a UI you can use a single xml file to create your installation package. There is a wide choice of installers on the market, but I prefer WiX, especially when I need to distribute large applications ...

Read More »

Create DPI-aware and resolution-aware WPF applications

In this article i will analyze two techniques that can help you on writing a DPI-aware application and how to scale it properly. There are two common scenarios which force you to make your application to scale to fit the screen: Different resolution Different DPI In fact it’s very common ...

Read More »

WPF touch-friendly controls for resistive touch-screen

While it’s fairly common, when working in automation field, to make software that runs on resistive touch-screens, I admit that it’s not a trivial task to make a good user experience, especially with a desktop technology like WPF and C#. In this article I posted some of the problems that ...

Read More »

Writing your first HMI project in C# – WPF

UPDATE 08/03/2017: I see that this article is quite popular, however it takes a simple approach to get you started, by using timers and other shortcomings. If you want to build your HMI with WPF and MVVM you can check also my new series HMI with C# and WPF. In ...

Read More »