{"id":408423,"date":"2024-06-29T20:09:43","date_gmt":"2024-06-29T20:09:43","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=408423"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=408423","title":{"rendered":"<span>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c .NET MAUI Community Toolkit (Preview)<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 Community Toolkit \u0440\u0430\u0434\u0430 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0445 \u0434\u0432\u0443\u0445 \u043d\u043e\u0432\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 .NET Multi-platform App UI (.NET MAUI):<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui\/\">CommunityToolkit.Maui<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui.Markup\/\">CommunityToolkit.Maui.Markup<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0431\u044b\u043b\u043e <a href=\"https:\/\/devblogs.microsoft.com\/xamarin\/the-future-of-xamarin-community-toolkit\/?WT.mc_id=mobile-39516-bramin\">\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043e<\/a> \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435, \u044d\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435\u043c <a href=\"https:\/\/github.com\/xamarin\/xamarincommunitytoolkit\">Xamarin Community Toolkits<\/a>. \u041e\u043d\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 .NET MAUI Extensions, Advanced UI\/UX Controls, Effects \u0438 Behaviors, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u0432\u0430\u043c \u0436\u0438\u0437\u043d\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 .NET MAUI-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0432 .NET MAUI Toolkit, \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 .NET MAUI. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430\u0431\u043e\u0440\u044b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0438 \u0442\u0435\u0441\u043d\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u0447\u0430\u0435\u043c \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 .NET MAUI, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<\/p>\n<h2>\u0427\u0435\u0433\u043e \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043e\u0442 .NET MAUI Toolkit<\/h2>\n<p>.NET MAUI Toolkit \u0435\u0449\u0435 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0432\u0441\u0435 \u043d\u043e\u0432\u0438\u043d\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u0437 <a href=\"https:\/\/github.com\/xamarin\/xamarincommunitytoolkit\">Xamarin<\/a> Community Toolkit. \u041c\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0438\u0445 \u0438\u0437 Xamarin.Forms \u0432 .NET MAUI, \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0445 (\u0441\u043c. <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/introducing-the-net-maui-community-toolkit-preview\/#schedule\">\u0433\u0440\u0430\u0444\u0438\u043a<\/a> \u043d\u0438\u0436\u0435).<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/08a\/572\/1ea\/08a5721eab9130a7fa3cfe738df83f18.png\" width=\"3428\" height=\"1850\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/08a\/572\/1ea\/08a5721eab9130a7fa3cfe738df83f18.png\"\/><figcaption><\/figcaption><\/figure>\n<p>.NET MAUI Toolkit \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439 MVVM \u0438\u0437 Xamarin Community Toolkit, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a <a href=\"https:\/\/channel9.msdn.com\/Shows\/XamarinShow\/Xamarin-Community-Toolkit-Awesome-AsyncCommand--AsyncValueCommand?WT.mc_id=mobile-39516-bramin\">AsyncCommand<\/a>. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0434\u043b\u044f MVVM, \u0432 \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 NuGet, CommunityToolkit.MVVM.<\/p>\n<h2>\u0427\u0435\u0433\u043e \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043e\u0442 .NET MAUI Markup Toolkit<\/h2>\n<p>.NET MAUI Markup Toolkit \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c MVVM, \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a, \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0442.\u0434. \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f XAML:<\/p>\n<ul>\n<li>\n<p>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 Fluent C#<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 .NET MAUI \u043d\u0430 C# \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e MVVM (\u0431\u0435\u0437 XAML)<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0431\u043e\u0440 <a href=\"https:\/\/github.com\/communitytoolkit\/maui.markup\">\u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 MAUI \u0434\u043b\u044f .NET<\/a> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 C # \u0438\u0437 \u043d\u0430\u0431\u043e\u0440\u0430 <a href=\"https:\/\/github.com\/xamarin\/xamarincommunitytoolkit\">\u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 Xamarin<\/a>.<\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <a href=\"https:\/\/github.com\/brminnick\/HackerNews\/\">HackerNews<\/a> \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c:<\/p>\n<p><strong>1. ContentPage<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/brminnick\/HackerNews\/blob\/5e93c31c6d806167ce01ad15fd6297c2014c6d96\/HackerNews\/HackerNews\/Pages\/NewsPage.cs#L13-L32\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434.<\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0f4\/b53\/9c9\/0f4b539c9f57406d94271511da940d25.png\" width=\"1556\" height=\"844\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0f4\/b53\/9c9\/0f4b539c9f57406d94271511da940d25.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>2. DataTemplate<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/brminnick\/HackerNews\/blob\/5e93c31c6d806167ce01ad15fd6297c2014c6d96\/HackerNews\/HackerNews\/Views\/News\/StoryDataTemplate.cs#L8-L33\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434.<\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ef2\/0c1\/be5\/ef20c1be51d5d85d81df3dc3faace2c7.png\" width=\"1206\" height=\"1068\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ef2\/0c1\/be5\/ef20c1be51d5d85d81df3dc3faace2c7.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/h2>\n<p>\u041c\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b\u0438\u0441\u044c \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 Microsoft Docs, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Community Toolkit. \u0421\u043b\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u043e \u043d\u043e\u0432\u043e\u043c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 Community Toolkit \u043d\u0430 docs.microsoft.com.<\/p>\n<h2>\u041d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<p>\u041e\u0431\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 MauiCompat \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 NuGet, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 .NET 6, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 net6.0-ios \u0438 net6.0-android:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th data-colwidth=\"247\" width=\"247\">\n<p><strong>CommunityToolkit.Maui<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>CommunityToolkit.Maui.Markup<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p>NuGet Package<\/p>\n<\/td>\n<td data-colwidth=\"247\" width=\"247\">\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui\/\">https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui\/<\/a><\/p>\n<\/td>\n<td>\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui.Markup\/\">https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui.Markup\/<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<ol>\n<li>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 .NET MAUI \u0432 Visual Studio <\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Visual Studio \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p><code>Install-Package CommunityToolkit.Maui<br \/><\/code>\u0438\u043b\u0438<br \/><code>Install-Package CommunityToolkit.Maui.Markup<\/code><\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439: <br \/>\u0412 C# \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p><code>using CommunityToolkit.Maui;<br \/>\u0438\u043b\u0438<br \/>using CommunityToolkit.Maui.Markup;<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412 XAML \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"xml\">xmlns=\"https:\/\/schemas.microsoft.com\/dotnet\/2021\/maui\" xmlns:behaviors=\"clr-namespace:CommunityToolkit.Maui.Behaviors;assembly=CommunityToolkit.Maui\" xmlns:converters=\"clr-namespace:CommunityToolkit.Maui.Converters;assembly=CommunityToolkit.Maui\" xmlns:effects=\"clr-namespace:CommunityToolkit.Maui.Effects;assembly=CommunityToolkit.Maui\" xmlns:views=\"clr-namespace:CommunityToolkit.Maui.Views;assembly=CommunityToolkit.Maui\"<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/576900\/\"> https:\/\/habr.com\/ru\/articles\/576900\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 Community Toolkit \u0440\u0430\u0434\u0430 \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0445 \u0434\u0432\u0443\u0445 \u043d\u043e\u0432\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 .NET Multi-platform App UI (.NET MAUI):<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui\/\">CommunityToolkit.Maui<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui.Markup\/\">CommunityToolkit.Maui.Markup<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u0430\u043a \u0431\u044b\u043b\u043e <a href=\"https:\/\/devblogs.microsoft.com\/xamarin\/the-future-of-xamarin-community-toolkit\/?WT.mc_id=mobile-39516-bramin\">\u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043e<\/a> \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435, \u044d\u0442\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435\u043c <a href=\"https:\/\/github.com\/xamarin\/xamarincommunitytoolkit\">Xamarin Community Toolkits<\/a>. \u041e\u043d\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 .NET MAUI Extensions, Advanced UI\/UX Controls, Effects \u0438 Behaviors, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442\u044c \u0432\u0430\u043c \u0436\u0438\u0437\u043d\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 .NET MAUI-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0432 .NET MAUI Toolkit, \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 .NET MAUI. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0430\u0431\u043e\u0440\u044b \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0438 \u0442\u0435\u0441\u043d\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u0447\u0430\u0435\u043c \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 .NET MAUI, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f.<\/p>\n<h2>\u0427\u0435\u0433\u043e \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043e\u0442 .NET MAUI Toolkit<\/h2>\n<p>.NET MAUI Toolkit \u0435\u0449\u0435 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0432\u0441\u0435 \u043d\u043e\u0432\u0438\u043d\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 \u0438\u0437 <a href=\"https:\/\/github.com\/xamarin\/xamarincommunitytoolkit\">Xamarin<\/a> Community Toolkit. \u041c\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0438\u0445 \u0438\u0437 Xamarin.Forms \u0432 .NET MAUI, \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u0430\u0445 (\u0441\u043c. <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/introducing-the-net-maui-community-toolkit-preview\/#schedule\">\u0433\u0440\u0430\u0444\u0438\u043a<\/a> \u043d\u0438\u0436\u0435).<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>.NET MAUI Toolkit \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0439 MVVM \u0438\u0437 Xamarin Community Toolkit, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a <a href=\"https:\/\/channel9.msdn.com\/Shows\/XamarinShow\/Xamarin-Community-Toolkit-Awesome-AsyncCommand--AsyncValueCommand?WT.mc_id=mobile-39516-bramin\">AsyncCommand<\/a>. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0434\u043b\u044f MVVM, \u0432 \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 NuGet, CommunityToolkit.MVVM.<\/p>\n<h2>\u0427\u0435\u0433\u043e \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043e\u0442 .NET MAUI Markup Toolkit<\/h2>\n<p>.NET MAUI Markup Toolkit \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c MVVM, \u043f\u0440\u0438\u0432\u044f\u0437\u043e\u043a, \u0441\u043b\u043e\u0432\u0430\u0440\u0435\u0439 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0438 \u0442.\u0434. \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f XAML:<\/p>\n<ul>\n<li>\n<p>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 Fluent C#<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 .NET MAUI \u043d\u0430 C# \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e MVVM (\u0431\u0435\u0437 XAML)<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u0431\u043e\u0440 <a href=\"https:\/\/github.com\/communitytoolkit\/maui.markup\">\u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 MAUI \u0434\u043b\u044f .NET<\/a> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 C # \u0438\u0437 \u043d\u0430\u0431\u043e\u0440\u0430 <a href=\"https:\/\/github.com\/xamarin\/xamarincommunitytoolkit\">\u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430 Xamarin<\/a>.<\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <a href=\"https:\/\/github.com\/brminnick\/HackerNews\/\">HackerNews<\/a> \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c:<\/p>\n<p><strong>1. ContentPage<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/brminnick\/HackerNews\/blob\/5e93c31c6d806167ce01ad15fd6297c2014c6d96\/HackerNews\/HackerNews\/Pages\/NewsPage.cs#L13-L32\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434.<\/a><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>2. DataTemplate<\/strong><\/p>\n<p><a href=\"https:\/\/github.com\/brminnick\/HackerNews\/blob\/5e93c31c6d806167ce01ad15fd6297c2014c6d96\/HackerNews\/HackerNews\/Views\/News\/StoryDataTemplate.cs#L8-L33\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043a\u043e\u0434.<\/a><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/h2>\n<p>\u041c\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b\u0438\u0441\u044c \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 Microsoft Docs, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043d\u043e\u0432\u044b\u0439 \u0434\u043e\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Community Toolkit. \u0421\u043b\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u043e \u043d\u043e\u0432\u043e\u043c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 Community Toolkit \u043d\u0430 docs.microsoft.com.<\/p>\n<h2>\u041d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u044b<\/h2>\n<p>\u041e\u0431\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 MauiCompat \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0432\u0438\u0434\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 NuGet, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 .NET 6, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 net6.0-ios \u0438 net6.0-android:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th data-colwidth=\"247\" width=\"247\">\n<p><strong>CommunityToolkit.Maui<\/strong><\/p>\n<\/th>\n<th>\n<p><strong>CommunityToolkit.Maui.Markup<\/strong><\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p>NuGet Package<\/p>\n<\/td>\n<td data-colwidth=\"247\" width=\"247\">\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui\/\">https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui\/<\/a><\/p>\n<\/td>\n<td>\n<p><a href=\"https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui.Markup\/\">https:\/\/www.nuget.org\/packages\/CommunityToolkit.Maui.Markup\/<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<ol>\n<li>\n<p>\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 .NET MAUI \u0432 Visual Studio <\/p>\n<\/li>\n<li>\n<p>\u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u0430 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 Visual Studio \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p><code>Install-Package CommunityToolkit.Maui<br \/><\/code>\u0438\u043b\u0438<br \/><code>Install-Package CommunityToolkit.Maui.Markup<\/code><\/p>\n<\/li>\n<li>\n<p>\u0427\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439: <br \/>\u0412 C# \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<p><code>using CommunityToolkit.Maui;<br \/>\u0438\u043b\u0438<br \/>using CommunityToolkit.Maui.Markup;<\/code><\/p>\n<\/li>\n<li>\n<p>\u0412 XAML \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"xml\">xmlns=\"https:\/\/schemas.microsoft.com\/dotnet\/2021\/maui\" xmlns:behaviors=\"clr-namespace:CommunityToolkit.Maui.Behaviors;assembly=CommunityToolkit.Maui\" xmlns:converters=\"clr-namespace:CommunityToolkit.Maui.Converters;assembly=CommunityToolkit.Maui\" xmlns:effects=\"clr-namespace:CommunityToolkit.Maui.Effects;assembly=CommunityToolkit.Maui\" xmlns:views=\"clr-namespace:CommunityToolkit.Maui.Views;assembly=CommunityToolkit.Maui\"<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/576900\/\"> https:\/\/habr.com\/ru\/articles\/576900\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-408423","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/408423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=408423"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/408423\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=408423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=408423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=408423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}