dotnet / dotnet/dotnet-api-docs

Example code is outdated and doesn't work

Open
#1,264 0 comments 4 reactions 0 assignees View on GitHub
area-WPF dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The example code appears to come from the previous Microsoft.Windows.Shell.dll implementation. Eg it is wrong to do

<Setter Property="shell:WindowChrome.WindowChrome">

it should be

<Setter Property="WindowChrome.WindowChrome">

because WindowChrome is in the PresentationFramework assembly now.

Also {x:Static shell:SystemParameters2.Current} doesn't work because apparently that property was dropped completely when this code was moved into the PresentationFramework.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 51b688a4-ceb5-6e73-78c1-45e7a4c37ab8
* Version Independent ID: 56918f97-3d7a-eac5-7141-3064ca392b98
* Content: [WindowChrome Class (System.Windows.Shell)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.shell.windowchrome?redirectedfrom=MSDN&view=netframework-4.7.2)
* Content Source: [xml/System.Windows.Shell/WindowChrome.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Shell/WindowChrome.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.