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…
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…
In this post I will show how to create a spinning progress control in WPF. This is often used to notify the user that a…
Here I’d like to describe some approaches how .NET applications can be localized. General In general the texts that are supposed to be localized should…
Sometimes it is important to prevent certain code being executed at design time. public static bool IsDesignTime { get { return (System.ComponentModel.LicenseManager.UsageMode == System.ComponentModel.LicenseUsageMode.Designtime); }…
<ComboBox ItemsSource=“{Binding Source={x:Static Fonts.SystemFontFamilies}}“ SelectedItem=“{Binding SelectedFont, UpdateSourceTrigger=PropertyChanged}“ /> The ComboBox is bound to the System Fonts enumeration. The SelectedItem DependencyProperty is bound to a SelectedFont…
You can simply use styles to enable text wrapping in a WPF DataGrid Column. This sets the element style of the standard column control and…