I’ve always published content targeted to mid-level C# developers. However quite a chunk of emails that I receive are from people getting started with C#. Hopefully this article will be a path for these people, a guide on learning how to do an HMI step by step and get consistent ...
Read More »WPF Resources
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 »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 »How to use Windows 7 dialogs with WPF
Wpf is an advanced technology to build responsive user interfaces, but for many tasks (MessageBox, Folder Browser, Progress Dialog) you still have to use the old Windows Forms dialogs. Windows 7 replaced this old forms with new ones to provide a better User Interface and a better feeling to their ...
Read More »GitHub: GIT GUI tutorial to get started with git
I recently started to use GIT as source code management system, and because i’m not made for commands written in console-like windows, i was looking for a guide on how to install and use the GIT Gui for Windows. I found this guide written by nathanj here and i think ...
Read More »WPF Themes and theme switcher class
You can find an updated collection of themes for WPF application here. This class contains also a test project where you can see how to switch themes based on a combobox and how to apply those themes. It’s a must have for a GUI developer.
Read More »WPF Localization based on Database with Design support
Get the lastest source code with examples from my github repository. Time ago i wrote a post on using a library that permitted to get strings from a database and using them as a resx resource to localize the application. As pointed out by Scott Whitlock, getting the strings in ...
Read More »How to make a Sortable ObservableCollection C#
Time ago i had to implement a sortable observable collection that was able to sort its members based on different parameters. After long and long searching i found this code, and i report it here so it can be useful for readers too. You can use the SortableObservableCollection in this ...
Read More »Multilanguage applications with C# with database support
[5/3/2012: I updated this post with a new version of this library for WPF, keeping this post separated because for Winforms this library is still okay. Check it here] Download the sample application: https://mesta-automation.com/Downloads/changeLanguage.rar As i wrote in an earlier post, the best way to realize a multilanguage application is to get ...
Read More »Create a multi-page application with WPF (HMI-like)
This article explains a very simple and straightforward approach to create a multi-page navigation with WPF. If you need to use dependency injection and DI containers, check this article on WPF navigation. When working in automation, you often use HMI devices that allow you to draw graphics pages and navigate ...
Read More »