DevPartner 2018 Workshop : Maximize Your Traditional Synergy Development with Visual Studio

Exercise 7: Native Desktop Application

Previous Exercise Home

This is the seventh of a series of exercises that demonstrate the abilities of developing Synergy inside Visual Studio.

If you have not completed the previous exercises you can find the first one here.

This exercise will create a Windows WPF desktop application that will utilize our existing Synergy application code and enhance the user experience with images and mapping technologies.

To begin the exercise, follow these simple steps:

This will create a .NET WPF project. After the project is created it will open up the MainWindows1.xaml and MainWindows1.xaml.dbl files. Close these windows. We can also delete the default source files from the project:

To ensure the correct version of the software is built:

We are going to add a number of libraries and source files to the project. These files can be downloaded from here. Download (when prompted by the browser select “open”) and open the zip file and copy ALL folders to the top level DevPartner2018 folder. It is very important that you copy the folders to the solution folder and NOT the project folder. **Note: You may be prompted with warnings about the file content (zip file contains assembly files) and overwriting folders. Both of these are valid and you should confirm to continue.

To add the source files to the project follow these steps:

We have provided the logic as part of a Synergy assembly and the associated third-party assemblies. These need to be referenced by the OnVinylWPFViewer project:

To ensure we run the new WPF application:

We can now attempt to build the solution:

The project will fail to build. We need to configure the required references so that the Synergy logic can be found:

We can now attempt to build the solution:

The project will build successfully. Now we can try to execute the target executable:

We now have a WPF UI utilizing third-party card views and Bing maps. Clicking on a vinyl image will render the correct map location where the item was purchased. You can compare results here.