Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

What's new in WPF for .NET 7

Feedback

In this article

This article describes some of the new Windows Presentation Foundation features and enhancements in .NET 7.

Performance improvements

A lot of the improvements in WPF for .NET 7 were focused around performance, such as:

  • Avoid boxing and unboxing where possible.
  • Avoid unnecessary object allocations on the heap.
  • Reuse instances ofStringBuilder instead of creating new instances.
  • Stopped usingStringBuilder when it wasn't necessary.

For a list of notable changes, see.NET Blog - What’s new for WPF in .NET 7.

Accessibility improvements and fixes

Additional keyboard interactions for controls were added:

  • TheDataGrid andGridView column widths can be adjusted withALT +Left/Right Arrow.
  • When sorting is enabled for theDataGrid, a column can be sorted withF3.
  • Checkable menu items are now correctly announced with an onscreen narrator.

Bug fixes

While WPF remains fully supported and serviced on .NET Framework, most fixes and all new features only go into .NET, where we have the opportunity to make bigger changes. The WPF community helped address some long-standing bugs in this release:

There were more bug fixes provided by the community, many of which are noted on the.NET Blog.

See also

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

  • Last updated on

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?