This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
WPF adds hardware acceleration and a new control for browsing and selecting folders in .NET 8.
Previously, all WPF applications that were accessed remotely had to use software rendering, even if the system had hardware rendering capabilities. .NET 8 adds an option that lets you opt into hardware acceleration for Remote Desktop Protocol (RDP).
Hardware acceleration refers to the use of a computer's graphics processing unit (GPU) to speed up the rendering of graphics and visual effects in an application. This can result in improved performance and more seamless, responsive graphics. In contrast, software rendering relies solely on the computer's central processing unit (CPU) to render graphics, which can be slower and less effective.
To opt in, set theSwitch.System.Windows.Media.EnableHardwareAccelerationInRdp configuration property totrue in aruntimeconfig.json file. For more information, seeHardware acceleration in RDP.
WPF includes a new dialog box control calledOpenFolderDialog. This control lets app users browse and select folders. Previously, app developers relied on third-party software to achieve this functionality.
var openFolderDialog = new OpenFolderDialog(){ Title = "Select folder to open ...", InitialDirectory = Environment.GetFolderPath( Environment.SpecialFolder.ProgramFiles)};string folderName = "";if (openFolderDialog.ShowDialog()){ folderName = openFolderDialog.FolderName;}For more information, seeWPF File Dialog Improvements in .NET 8 (.NET blog).
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?