How it works...

Now we have a working WPF application that uses a .NET Standard 2.0 library as its source. Let's have a look at the steps we followed. In steps 1 to 7, we opened the previously built .NET Standard 2.0 library project and the solution. After that, we added a Windows Presentation Foundation project to the solution. As you know, WPF is a UI framework that runs on top of the .NET Framework. 

From steps 9 to 13, we just created the user interface for our application. Then, in step 12, we changed some default properties of the controls we added. Giving meaningful names is a very good practice as it helps you to build readable code. In step 20, we just double-clicked on a control, in this case the button, to open the code windows. ...

Get .NET Standard 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.