A simple example of using dependency injection using Unity in WPF

Step 1: Create a new Visual Studio project Step 2: Add the necessary Unity reference Select Tools > NuGet Package Manager. Type in the following command: Unity website for NuGet can be found here: https://www.nuget.org/packages/Unity/ Step 3: Remove the startup URL In App.xaml get rid of the StartupUri value: Step 4: Add the Model class …

Continue reading ‘A simple example of using dependency injection using Unity in WPF’ »

Using fullpage.js to implement HTML page scrolling

Some instructions on how to use fullpage.js to scroll between sections in your web page. I am not a web developer, so this post will contain a minimum of javascripting, css styling and so on. I just wanted to see how fullpage.js can be incorporated so that individual web pages can be scrolled horizontally in …

Continue reading ‘Using fullpage.js to implement HTML page scrolling’ »

Applying the 2-opt algorithm to travelling salesman problems in Java

This post tackles the problem of applying the 2-opt algorithm to travelling salesman problems in Java. The results of applying the 2-opt heuristic and applying it to a number standard traveling salesman test problems. are shown For a more in-depth description of the 2-opt heuristic, please refer to the following Wiki page: http://en.wikipedia.org/wiki/2-opt The actual …

Continue reading ‘Applying the 2-opt algorithm to travelling salesman problems in Java’ »

Creating installations using Inno Setup in Visual Studio

Step 1: Run the Inno Setup installer When using Inno Setup within Visual Studio project as a post-build exercise to create an installer package, you will need the contents of the Inno Setup folder as this will contain the command line executables, dll files etc. If you have not already done this, you can get …

Continue reading ‘Creating installations using Inno Setup in Visual Studio’ »

Using the Gecko browser using MVVM

A similar post on using the Gecko browser via WPF can be found here: https://www.technical-recipes.com/2017/using-the-gecko-web-browser-in-wpf/ In this post I extend these ideas a little so that the Gecko web browser, a WinForms control, can be used as part of the MVVM pattern. Some other modifications are necessary, such as incorporating ICommand implementations, and supervisor controlling …

Continue reading ‘Using the Gecko browser using MVVM’ »

Using the Gecko web browser in WPF

Some instructions on how to incorporate the Gecko (Firefox) web browser, which is WinForms-based, for use within your WPF / XAML based C# project. A similar post can be found here, whereby I use the MVVM-based approach: https://www.technical-recipes.com/2017/using-the-gecko-browser-using-mvvm Step 1: Create a new WPF project Step 2: Install Gecko via NuGet In my example I …

Continue reading ‘Using the Gecko web browser in WPF’ »