You can download the sample here: https://www.mesta-automation.com/Downloads/multithread.rar With WPF it’s almost a must to use multiple threads to keep the User Interface responsive, and debugging them can be a problem when they are complex. Usually i debug the background threads with the Console, while keeping the Main Window visible, like in ...
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 »AdvancedHMI: an open source HMI based on .Net with many drivers available
Advanced HMI is an Open Source HMI (that you can transform in a more complete SCADA by adding your own code) that offers also Open Source drivers to connect to many PLCs. It’s written with Visual Basic .Net and you can use this project with C# and WPF too. You ...
Read More »Keypad for WPF applications with touch-screen
This is a keypad that i often use in my applications. You can download the source code and a sample application from here:https://www.mesta-automation.com/Downloads/keypad.rar The original graphic and concepts has been taken from here: http://wosk.codeplex.com/ (check for the latest source code) and this control comes with the original license attached (it’s a free ...
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 »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 »