The command pattern is old in the software industry. The earliest date that I’ve found that it was published is in the Design Patterns book, by the “Gang of Four”, which was first published in 1994. Most likely it was around earlier, otherwise would not make the book. While it is a well-known pattern, the […]
Archive | May, 2017
Creating Clone of Virtual Machine from PowerShell
During the previous articles, we created a virtual machine and installed an operating system on it, that we intend to use as base image for automatically generating environment for tests. In case you missed those articles, here is the research plan for automatic test environments. Now that we created the image, we would like to […]
Creating Attached Properties
Attached Properties are a special kind of dependency properties. They are most likely used to specify some layout information that is containing information for the containing control, not the control that on which we set it. To demonstrate the usage of the attached properties, we are going to implement a simple layout control which has […]
Installing Base Windows Image for Automated Test Environments
In the previous two parts of this series, Downloading Windows 10 ISO From Microsoft – in 10 easy steps and Creating a Hyper-V Virtual Machine for Automatic Test Environments, we downloaded the Windows 10 installer and created a virtual machine for its installation. Now it is time to install it for creating a base image […]
Creating Binding for a Property – from Code
Dependency properties are making easy to attach a user interface to a specific property of the code from XAML. However, attaching the user interface to the same property is not possible only from the XAML. We can do the same from the code too. The completed solution for this article can be found in the […]
Creating a Hyper-V Virtual Machine for Automatic Test Environments
Last week, we downloaded the Windows 10 ISO image to be used to create test environments automatically from Jenkins. This week, we are going to set up a Virtual Machine on which next time we will install the operating system. To create a virtual machine in the Hyper-V program, follow these steps: After starting the […]
Working with Collections on the User Interface
When working with collections attached to the user interface in WPF, there is a little trick that you should be aware of. Consider the source code of the Z09_ObservableCollections project in the WpfWednesday repository. On the MainWindow user interface, the left and the right of the panel looks the same – not counting the difference […]
Downloading Windows 10 ISO From Microsoft – in 10 easy steps
To be able to build the automated test system, we would like to create a base image, that we can later clone as machines for building up the test environments. To be able to build a Windows 10 based image for the purpose, we will need the Windows 10 ISO, which can be downloaded from […]
Attaching Event Handlers to Dependency Properties
In the previous articles, we investigated how to create dependency properties. Beside binding them to properties in XAML, it is useful to attach event handlers to them to be notified about change events. The example code for this article is in the WpfWednesday git repository, in the Z08_AttachingEventHandlers project. There are two methods to attach […]