* start preview 2 release notes * Add feature section to WPF release notes Fix linter issue * updates for linter * updates * add release notes for efcore * small fix to the fixed bugs link * typo * added mention of another improvement * .NET MAUI in 10 preview 2 Starting the release notes gathering here. @dalexsoto @rolfbjarne @jonpryor @PureWeen @Redth please contribute. * Add ExportPkcs12 blurb * Fix bad newlines from Copilot Workspace * add release note about SDK noun-first command forms * Update known issues to include ARM64 Windows hosting bundle upgrade break (#9783) * Update known issues to include ARM64 Windows hosting bundle upgrade break * Apply suggestions from code review Co-authored-by: Daniel Roth <daroth@microsoft.com> * Add ASP.NET Core updates for .NET 10 Preview 2 (#9801) * Add ASP.NET Core updates for .NET 10 Preview 2 * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Martin Costello <martin@martincostello.com> * Add Blazor reconnection UI component * Add remaining Blazor features * Edits * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Safia Abdalla <safia@microsoft.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Safia Abdalla <safia@microsoft.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Safia Abdalla <safia@microsoft.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> * Add ShouldMatch code snippet * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Wade Pickett <wpickett@microsoft.com> * Update release-notes/10.0/preview/preview2/aspnetcore.md Co-authored-by: Wade Pickett <wpickett@microsoft.com> --------- Co-authored-by: Martin Costello <martin@martincostello.com> Co-authored-by: Safia Abdalla <safia@microsoft.com> Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> Co-authored-by: Wade Pickett <wpickett@microsoft.com> * Add containers release notes for 10.0 Preview 2 (#9796) * Add containers release notes for 10.0 Preview 2 * Fix run-on-sentence Co-authored-by: Matt Thalman <mthalman@microsoft.com> --------- Co-authored-by: Matt Thalman <mthalman@microsoft.com> * WinForms Preview 2 Release Notes (#9787) * Preview 2 * Fix typo * Update query * Review feedback * extra line * Fixing errors * Initial version C# P2 blog post (#9795) * Initial version C# P2 blog post * Apply suggestions from code review Co-authored-by: Bill Wagner <wiwagn@microsoft.com> * updat ename of file * Update release-notes/10.0/preview/preview2/csharp.md --------- Co-authored-by: James Montemagno <james.montemagno@gmail.com> Co-authored-by: Bill Wagner <wiwagn@microsoft.com> * Preview 2 release notes for WPF (#9805) * Update wpf.md * Add missing period. * cleanup * cleanup * Add .NET 10 Preview 2 release notes -- Libraries and Runtime (#9770) * Start runtime and library release notes * Add JIT notes * Update benchmarks * Fix array de-abstraction intro * Update release-notes/10.0/preview/preview2/runtime.md --------- Co-authored-by: Aman Khalid <amankhalid@microsoft.com> * MAUI in 10 preview 2 (#9782) * MAUI in 10 preview 1 * what's new for maui thanks davidbritch for capturing these * Update URLs for macios release notes * Final polishing --------- Co-authored-by: Alex Soto <alex@soto.dev> Co-authored-by: Rachel Kang <rachel.j.kang@gmail.com> * updates * updates to readme * update readme * tweaks to mds * enhacne tables * lint cleanup * Updating 10.0 PReview files * Update releases-index.json * updates --------- Co-authored-by: Rich Lander <rlander@microsoft.com> Co-authored-by: maumar <maumar@microsoft.com> Co-authored-by: David Ortinau <david.ortinau@microsoft.com> Co-authored-by: Jeremy Barton <jbarton@microsoft.com> Co-authored-by: Chet Husk <chusk3@gmail.com> Co-authored-by: Stephen Halter <halter73@gmail.com> Co-authored-by: Daniel Roth <daroth@microsoft.com> Co-authored-by: Martin Costello <martin@martincostello.com> Co-authored-by: Safia Abdalla <safia@microsoft.com> Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com> Co-authored-by: Wade Pickett <wpickett@microsoft.com> Co-authored-by: Logan Bussell <loganbussell@microsoft.com> Co-authored-by: Matt Thalman <mthalman@microsoft.com> Co-authored-by: Merrie McGaw <mmcgaw@microsoft.com> Co-authored-by: Kathleen Dollard <kdollard@microsoft.com> Co-authored-by: Bill Wagner <wiwagn@microsoft.com> Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com> Co-authored-by: Aman Khalid <amankhalid@microsoft.com> Co-authored-by: Alex Soto <alex@soto.dev> Co-authored-by: Rachel Kang <rachel.j.kang@gmail.com> Co-authored-by: Rahul Bhandari (.NET) <rbhanda@microsoft.com>
6.8 KiB
.NET MAUI in .NET 10 Preview 2 - Release Notes
Here's a summary of what's new in .NET MAUI, .NET for Android, and .NET for iOS, Mac Catalyst, macOS, and tvOS in this preview release:
.NET MAUI updates in .NET 10:
- What's new in .NET MAUI in .NET 10 documentation.
ShadowTypeConverter
.NET 10 includes a ShadowTypeConverter type for converting a formatted string to a Shadow on a VisualElement.
-
color, offset X, offset Y
<VerticalStackLayout BackgroundColor="#fff" Shadow="#000000 4 4" /> -
offset X, offset Y, radius, color
<VerticalStackLayout BackgroundColor="#fff" Shadow="4 4 16 #000000" /> -
offset X, offset Y, radius, color, opacity
<VerticalStackLayout BackgroundColor="#fff" Shadow="4 4 16 #000000 0.5" />
SpeechOptions Rate
When using Text-to-Speech in .NET 10 you now have the option to control the rate at which the audio plays by setting Rate on the SpeechOptions.
public async void SpeakSettings()
{
IEnumerable<Locale> locales = await TextToSpeech.Default.GetLocalesAsync();
SpeechOptions options = new SpeechOptions()
{
Rate = 2.0f, // 0.1 - 2.0
Pitch = 1.5f, // 0.0 - 2.0
Volume = 0.75f, // 0.0 - 1.0
Locale = locales.FirstOrDefault()
};
await TextToSpeech.Default.SpeakAsync("How nice to meet you!", options);
}
Styling Modal as Popover
With this new platform-specific you can display a modal page as a popover on iOS and Mac Catalyst. It's consumed by setting the Page.ModalPopoverSourceView bindable property to a View that defines the source of the modal, the Page.ModalPopoverRect bindable property to a Rectangle that defines the rectangle within the source of the modal, and the Page.ModalPresentationStyle bindable property to Popover:
public partial class PopoverPage : ContentPage
{
public PopoverPage(View modal, Rectangle rectangle)
{
InitializeComponent();
On<iOS>().SetModalPopoverView(modal);
On<iOS>().SetModalPopoverRect(rectangle);
On<iOS>().SetModalPresentationStyle(UIModalPresentationStyle.Popover);
}
}
Then, navigate to the modal page with the Navigation.PushModalAsync method:
Page modalPage = new PopoverPage(originButton, Rectangle.Empty);
await Navigation.PushModalAsync(modalPage);
More info see the GitHub pull request.
Switch.OffColor
You can now set the OffColor in addition to OnColor for a Switch control.
<Switch OffColor="Red"
OnColor="Blue" />
SearchBar.SearchIconColor
You can now set the color of the search icon that appears with a SearchBar by setting SearchIconColor.
<SearchBar Placeholder="Search items..." SearchIconColor="Red" />
HybridWebView new InvokeJavascriptAsync Method
A method for InvokeJavascriptAsync has been made public for when you don't want a generic argument or return type argument to be required as was the case previously.
More info see the GitHub pull request.
Deprecations
- The
FontImageExtensionXAML markup extension is deprecated. UseFontImageSourceinstead. - MessagingCenter is now internal. It can be replaced with WeakReferenceMessenger in the CommunityToolkit.Mvvm NuGet package. For more information, see Messenger.
.NET for Android
This release was focused on quality improvements. A detailed list can be found on dotnet/android GitHub releases.
.NET for iOS, Mac Catalyst, macOS, tvOS
This release was focused on quality improvements. A detailed list can be found on dotnet/macios GitHub releases including a list of Known issues.
Community Contributors
Thank you to community contributors @MartyIX, @StephaneDelcroix, @Zerod159, @jonathanpeppers, @jfversluis, @rmarinho, @albyrock87, @symbiogenesis, @pjcollins, @sthewissen, @spadapet, @PureWeen, @jsuarezruiz, @dotnet-bot, @rabuckley, @csigs, @pictos, @APoukar, @kubaflo, @piersdeseilligny, @tj-devel709, @jkurdek, @mohsenbgi, @SuthiYuvaraj, @KarthikRajaKalaimani, @BagavathiPerumal, @Tamilarasan-Paranthaman, @dotnet-maestro, @anandhan-rajagopal, @NirmalKumarYuvaraj, @Shalini-Ashokan, @Vignesh-SF3580, @Ahamed-Ali, @NanthiniMahalingam, @devanathan-vaithiyanathan, @prakashKannanSf3972, @Dhivya-SF4094, @nivetha-nagalingam, @NafeelaNazhir, @LogishaSelvarajSF4525, @HarishKumarSF4517, @bhavanesh2001, and @SubhikshaSf4851.