Category: C# / .Net / WPF
An implementation of using the WPF Combo Box using MVVM patterns. The intention is to get a ComboBox control’s SelectedItem property to bind to an instance of a selected object, …
In this post I demonstrate how the methods of a DocumentViewer class may be invoked via MVVM / WPF in order to modify the way an embedded PowerPoint presentation is …
Step 1: Create a new WPF projectStep 2: Create the ViewModel classesAdd the ViewModel classes that are used to do the bindings with the User Interface componentsMainWindowViewModel.csThis includes the WindowState …
Example scenario: User clicks the mouse in a WPF application – how do we ‘listen’ to that event in order to trigger and handle an event in the main code? …
Some instruction on how to embed a PowerPoint presentation within a WPF application by converting the file to a XPS format and displaying this using DocumentViewer.Step 1: Create a WPF …
Some instructions on how to use the Mediator design pattern as a means of allowing communication between ViewModel classes in your MVVM / WPF application.In this example I use the …
Some brief instructions on getting started with using the Chromium Web Browser in WPF.Step 1: Create a new WPF project Step 2: Obtain the CefSharp packages using NuGetLink for the …
Essentially the same as these instructions, but using a purely MVVM approach and without the additional stop / start / pause etc buttons – the application just ‘sees’ the MP4 …
Firstly credit, must go to Thomas Freudenberg’s splendid 2010 blog posting : Binding WebBrowser content in WPFI have merely tweaked it a little, so that instead of using this technique …
For original inspiration see this excellent link by Stephen Cleary:http://blog.stephencleary.com/2013/01/async-oop-2-constructors.htmlStep 1: Create a new WPF applicationStep 2: Define your example serviceIn this example, a service to count the number of …