Discover the latest enhancements and improvements.
.NET Framework 4.8 represents a significant milestone, focusing on accessibility, high-DPI support, and performance improvements while maintaining backward compatibility. This version continues to provide a robust and feature-rich platform for building Windows applications.
.NET Framework 4.8 brings substantial enhancements to accessibility, making applications more usable for individuals with disabilities. Key improvements include:
Addressing the growing need for better display scaling on modern monitors, .NET Framework 4.8 introduces significant advancements in high-DPI support:
While focusing on accessibility and display, .NET Framework 4.8 also includes under-the-hood performance and reliability enhancements:
.NET Framework 4.8 is available as an in-place update for .NET Framework 4.7.2. You can download the latest version from the official Microsoft website.
For detailed information on specific API changes, migration guides, and best practices, please refer to the official .NET Framework documentation.
To enable per-monitor DPI awareness in your WPF application, you can add the following
to your App.xaml
file:
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="YourAppNamespace.App"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
dx:ThemeManager.ThemeName="LightGray">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<dx:ThemeKeyResourceExtension x:Key="ThemeKey"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
For Windows Forms, you can set the application manifest to declare high-DPI support.