The Unix calendar starts at 01/01/1970. This post will show you how to convert any DateTime value into a Unix time stamp. private const string…
When you use the Entity Framework to query data from a database, you often have to load detail data related to a database entry. Child…
There is no built-in way to discover the MAC address of your network adapter in .NET. Using the following function the MAC address that belongs…
The following code contains extension methods for the random class. One method will create random dates between a given minimum and maximum. The second method…
There is a bug in WPF that leads to a very strange behavior: A style that is defined in the resources is not applied to…
There is a new blog post about this topic with a new improved version of the AutoGrayableImage: https://www.engineeringsolutions.de/wp-admin/post.php?post=663 The following class is a WPF image…
This can be used to choose the line type from a ComboBox, for example in a drawing application. The first entry is a solid line,…
A DropShadowEffect can be used to make any WPF control cast a shadow. In order to use this on a text, we can simply assign…
Enumerations are often used in applications to enable the user to select an item from a list of predefined values. This can be handled in…
This post gives you an overview of the MVVM (Model-View-ViewModel) pattern. There are many similar very good articles like this, giving you a rough overview,…