diff --git a/docs/whats-new/dotnet-9.md b/docs/whats-new/dotnet-9.md index e7edc3e19..31e4ef123 100644 --- a/docs/whats-new/dotnet-9.md +++ b/docs/whats-new/dotnet-9.md @@ -1,7 +1,7 @@ --- title: What's new in .NET MAUI for .NET 9 description: Learn about the new features introduced in .NET MAUI for .NET 9. -ms.date: 12/20/2024 +ms.date: 01/31/2025 --- # What's new in .NET MAUI for .NET 9 @@ -191,6 +191,21 @@ builder.ConfigureMauiHandlers(handlers => In .NET MAUI 9, the property is also supported on Mac Catalyst, as well and Android and iOS. +### Focus behavior on Windows + +In .NET MAUI 8 on Windows, the event, the event, and the property are applied to an element and its children: + +```xaml + + + + +``` + +In this example on .NET 8, the `OnFocused` event handler is executed on Windows when the , , or gains focus. + +.NET MAUI 9 changes this behavior on Windows to be identical to the other platforms. Therefore, the event, the event, and the property only apply to an element. Therefore, when the previous example runs on .NET 9, the `OnFocused` event handler isn't executed because only input controls can gain focus. + ### Soft keyboard input support .NET MAUI 9 adds new soft keyboard input support for `Password`, `Date`, and `Time`. These can be enabled on and controls: