I wanted to create a simple graphics editor that has some UI element live in a canvas. Hence, they can be freely positioned. In former…
In WPF there are bubbling Routed Events that travel up the visual tree until they are marked as handled by an event handler. This is…
This post describes a new, improved versions of the AutoGrayableImage introduced in this blog: https://www.engineeringsolutions.de/wp-admin/post.php?post=334 Why? There were some issues with the original version which…
Dependency properties are widely used in WPF controls. However there is no buid-in way to listen to changes of such properties. The following class is…
This snippet shows how to display a list of system colors in XAML only. First we create ab object data source containing the list of…
This post shows how to overcome an annoying bug in the Microsoft RibbonControlsLibrary. When you define the ribbon and change the label of the „File“…
The following describes how to used a converter to directly bind your ViewModel properties to the Visibility of controls in your view. First we define…
In WPF IValidatableObject, IDataErrorInfo interface implementations can be used to validate user input against validation rules. This blow shows a different approach that defines a…
Das WPF FlowDocument ist eine einfache Möglichkeit, um Fließtext in WPF darzustellen. Hier zeige ich Methoden, um Textdateien in ein FlowDocument einzulesen. XAML: <FlowDocumentScrollViewer x:Name=“documentViewer“…
The .NET Framework uses many different approaches for validation. The ASP.NET MVC for example uses Data Annotations to annotate the model classes with the definition…