Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.99 KB

getting-started.md

File metadata and controls

41 lines (24 loc) · 1.99 KB

Getting started with WPF for .NET Core

This document describes the experience of using WPF on .NET Core. The Developer Guide describes how to develop features and fixes for WPF.

Installation

Choose one of these options:

  1. .NET Core 3.0 SDK Preview 1 (recommended)
  2. .NET Core 3.0 daily build (latest changes, but less stable)

Creating new applications

You can create a new WPF application with dotnet new command, using the new templates for WPF.

In your favorite console run:

dotnet new wpf -o MyWPFApp
cd MyWPFApp
dotnet run

Samples

Check out the WPF for .NET Core 3 samples for HelloWorld example. The existing WPF for .NET Framework samples have also been updated to dual-target .NET Framework and .NET Core 3.

Documentation

For WPF API documentation, see the .NET API Browser.

For conceptual documentation (architecture, how-tos, etc.) most of the documentation for WPF for .NET Framework applies equally well to WPF for .NET Core 3. The main differences are around project structure and lack of Designer support.

Missing features

  • To use the XAML Designer for WPF on .NET Core 3 you will need VS 2019 16.2 Preview 1.
  • XAML Browser applications (XBAPs) are not supported for .NET Core 3.
  • Not all .NET Framework features are supported for .NET Core 3. You can use the .NET API Portability Analyzer to see if your existing code can run on .NET Core 3.

A full list of supported / unsupported features will be available in a future update.