Category: C# / .Net / WPF
Some instructions on how to intercept events when clicking on Listview controls in WPF / MVVM.Step 1: Create a new WPF application in Visual StudioStep 2: Ensure necessary resources are …
Some instructions on how to automatically increment the build number of your Visual Studio project.What was important to me was to automatically increment the build and version number of my …
When downloading very large files from an online source, it can sometimes appear that the program has frozen or crashed when in fact it is still busy downloading and/or writing …
Some instructions on how to maintain your project properties as a separate class library in Visual Studio. For this project I am using Visual Studio 2015.Step 1: Create a new …
Some instructions on how to use Newtonsoft JSON to serialize and deserialize your objects in C#Step 1: Create a new Visual Studio projectJust a simple console application will do:Step 2: …
Suppose you have a conditional statement such as a switch or if-else that performs various actions depending on an object’s type:It is often beneficial to try to avoid lengthy switch/if-else …
A post describing how to utilise Appccelerate as a means of employing a state machine in your MVVM / WPF application.Implementing state machines using the state pattern can lead to …
Some sample C# code on how a genetic algorithm can be applied to the quadratic assignment problem.The quadratic assignment problem (QAP) is a combinatorial optimization problem that models the following …
A short post comtaining some example XAML code on how to enable vertical scrolling in a WFP application containing a Scrollviewer command that uses the CEFsharp browser control.Step 1: Create …
Some sample C# code on how a genetic algorithm can be applied to the linear assignment problem.This problem can be efficiently solved using the Hungarian algorithm, but I wanted to …