getting-started.md 1.7 KB
Newer Older
1
# Getting started with WPF for .NET
K
Karel Zikmund 已提交
2

3
This document describes the experience of using WPF on .NET. The [Developer Guide](developer-guide.md) describes how to develop features and fixes for WPF.
K
Karel Zikmund 已提交
4 5 6 7 8

## Installation

Choose one of these options:

9 10
1. [.NET 6.0 SDK (recommended)](https://www.microsoft.com/net/download)
2. [.NET 7.0 daily build (latest changes, but less stable)](https://github.com/dotnet/core/blob/main/daily-builds.md)
K
Karel Zikmund 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

## 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:

```cmd
dotnet new wpf -o MyWPFApp
cd MyWPFApp
dotnet run
```

## Samples

26
Check out the [WPF for .NET samples](https://github.com/dotnet/samples/tree/main/wpf) for HelloWorld example. The existing [WPF for .NET samples](https://github.com/Microsoft/WPF-Samples) have also been updated to target .NET.
P
Peter Torr (MSFT) 已提交
27 28


R
Rich Lander 已提交
29 30 31 32
## Documentation

For WPF API documentation, see the [.NET API Browser](https://docs.microsoft.com/en-us/dotnet/api/?view=netcore-3.0).

33
For conceptual documentation (architecture, how-tos, etc.) most of the [documentation for WPF for .NET Framework](https://docs.microsoft.com/en-us/visualstudio/designers/getting-started-with-wpf) applies equally well to WPF for .NET. The main differences are around project structure and lack of Designer support.
P
Peter Torr (MSFT) 已提交
34 35 36

## Missing features

37 38
* [XAML Browser applications (XBAPs)](https://docs.microsoft.com/en-us/dotnet/framework/wpf/app-development/wpf-xaml-browser-applications-overview) are not supported for .NET. 
* Not all .NET Framework features are supported for .NET. You can use the [.NET API Portability Analyzer](https://github.com/microsoft/dotnet-apiport) to see if your existing code can run on .NET.