Getting started with EasyTree – a jquery tree menu builder

EasyTree is a JavaScript Menu handling mechanism that is concise but easy to configure. It has a comprehensive set of options that can be tweaked according to the complexity of the requirement: anything from a basic tree menu to being able to handle the firing of events to the dragging and dropping of tree elements. …

Continue reading ‘Getting started with EasyTree – a jquery tree menu builder’ »

Applying reset stylesheets to HTML using CSS

As John Meyer states: “The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.” I am using this pretty much as is. The only difference is that I have also deined my own style for “h1” styles heading, using …

Continue reading ‘Applying reset stylesheets to HTML using CSS’ »

Creating a web server in C#

This basically replicates the “Simple C# Web Server” that is done over at “David’s” Blog: https://codehosting.net/blog/BlogEngine/post/Simple-C-Web-Server I use pretty much the same code – I have given the code the once-over using Re-Sharper. Other than that, the only real difference is that this post actually tells you how to get started and how to demonstrate …

Continue reading ‘Creating a web server in C#’ »

Using the Gecko Web Browser in a C# Winforms Project

Some particularly useful links: http://stackoverflow.com/questions/8778320/how-to-use-gecko-in-c-sharp https://xinyustudio.wordpress.com/2015/07/04/embedding-web-browsers-in-winform-applications/#more-3695 See this link if you’re interested in using Gecko in a WPF project: https://www.technical-recipes.com/2017/using-the-gecko-web-browser-in-wpf/ Installing and using the latest GeckoFX-45.0 1. Create a new WinForms application: 2. Install the GeckoFX package via NuGet Select Tools > NuGet Package Manager > Package Manager Console At the Package Manager Console type …

Continue reading ‘Using the Gecko Web Browser in a C# Winforms Project’ »

Binding data to ListView controls in WPF using MVVM

Some few tips and instructions on how to bind data items contained in a List to a WPF ListView. Create a new empty WPF Application: Then create a new ViewModel class for out MainWindow.xaml which will be used to create and access the data items that are bound to the ListView: Our MainWindowViewModel class has …

Continue reading ‘Binding data to ListView controls in WPF using MVVM’ »

Switching between WPF XAML views using MVVM DataTemplate

UPDATE: There is an improved version of this technique, one which does not need to create Views, which can be found at the following link: https://www.technical-recipes.com/2018/navigating-between-views-in-wpf-mvvm/ This technique has been already discussed on a number of blog / website forums including the following: https://rachel53461.wordpress.com/2011/05/28/switching-between-viewsusercontrols-using-mvvm/ http://stackoverflow.com/questions/19654295/wpf-mvvm-navigate-views http://stackoverflow.com/questions/10993385/changing-view-on-buttonclick I thought it would be useful to share an …

Continue reading ‘Switching between WPF XAML views using MVVM DataTemplate’ »