{"id":37472,"date":"2021-11-08T12:24:51","date_gmt":"2021-11-08T19:24:51","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/dotnet\/?p=37472"},"modified":"2021-11-08T14:54:20","modified_gmt":"2021-11-08T21:54:20","slug":"announcing-net-maui-preview-10","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-maui-preview-10\/","title":{"rendered":"Announcing .NET MAUI Preview 10"},"content":{"rendered":"<p>.NET Multi-platform App UI (MAUI) Preview 10 is now available atop <a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/announcing-net-6\/\">the stable release of .NET 6<\/a>, and you can acquire it today in the <a href=\"https:\/\/aka.ms\/vs2022preview\" rel=\"noopener\" target=\"_blank\">preview channel of Visual Studio 2022<\/a>. This new release includes the merging of the remaining Windows App SDK dependencies, and ongoing progress to complete the remaining controls and control features.<\/p>\n<h2>Installing .NET MAUI<\/h2>\n<p>Now to install .NET MAUI, you will want to make sure you are using the preview version of <a href=\"https:\/\/aka.ms\/vs2022preview\" rel=\"noopener\" target=\"_blank\">Visual Studio 2022 (17.1)<\/a> which ships today alongside the stable 17.0 release. When installing, all you need is the &#8220;Mobile development with .NET&#8221; workload which by default provides the &#8220;.NET MAUI (Preview)&#8221; dependencies. In a future release, .NET MAUI will be promoted to its own top-level workload.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2021\/11\/installer_maui_10.jpg\" alt=\"Visual Studio installation with Mobile development with .NET checked\" \/><\/p>\n<p>That&#8217;s it! No more additional extensions are needed, and you&#8217;re ready to begin developing with .NET MAUI.<\/p>\n<h2>Update on controls and features<\/h2>\n<p>New in this release are handler implementations of <code>CollectionView<\/code> and <code>IndicatorView<\/code>. Other controls have also seen properties implement for <code>VerticalTextAlignment<\/code>, <code>TextTransform<\/code>, and more. For a complete list of the changes and improvements, see the <a href=\"https:\/\/github.com\/dotnet\/maui\/releases\/tag\/6.0.101-preview.10\">release notes<\/a>.<\/p>\n<p><code>CollectionView<\/code> covers most of the same virtualized list based scenarios as <code>ListView<\/code> and adds support for other layouts such as horizontal and grid. Here is a vertical scrolling grid spanning two columns:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2021\/11\/collectionview_maui_10.png\" alt=\"grid of monkeys displayed by a CollectionView control\" \/><\/p>\n<pre><code class=\"language-xaml\">&lt;CollectionView ItemsSource=\"{Binding Monkeys}\"\r\n                ItemsLayout=\"VerticalGrid, 2\"&gt;\r\n    &lt;CollectionView.ItemTemplate&gt;\r\n        &lt;DataTemplate&gt;\r\n            &lt;Grid Padding=\"10\" RowDefinitions=\"60\" ColumnDefinitions=\"70,*\"&gt;\r\n                &lt;Image Grid.RowSpan=\"2\" \r\n                        Source=\"{Binding ImageUrl}\" \r\n                        Aspect=\"AspectFill\"\r\n                        HeightRequest=\"60\" \r\n                        WidthRequest=\"60\"&gt;\r\n                    &lt;Image.Clip&gt;\r\n                        &lt;RectangleGeometry Rect=\"0,0,160,160\"\/&gt;\r\n                    &lt;\/Image.Clip&gt;\r\n                &lt;\/Image&gt;\r\n                &lt;Label Grid.Column=\"1\" \r\n                        Text=\"{Binding Name}\" \r\n                        FontAttributes=\"Bold\"\r\n                        TextColor=\"White\"\r\n                        VerticalOptions=\"Start\"\r\n                        LineBreakMode=\"TailTruncation\" \/&gt;\r\n                &lt;Label Grid.Column=\"1\" \r\n                        Text=\"{Binding Location}\"\r\n                        LineBreakMode=\"TailTruncation\"\r\n                        FontAttributes=\"Italic\" \r\n                        TextColor=\"White\"\r\n                        VerticalOptions=\"End\" \/&gt;\r\n            &lt;\/Grid&gt;\r\n        &lt;\/DataTemplate&gt;\r\n    &lt;\/CollectionView.ItemTemplate&gt;\r\n&lt;\/CollectionView&gt;<\/code><\/pre>\n<p>For more information on how to use these controls, check out our documentation:<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/xamarin\/xamarin-forms\/user-interface\/collectionview\/\">CollectionView<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/xamarin\/xamarin-forms\/user-interface\/indicatorview\">IndicatorView<\/a><\/li>\n<\/ul>\n<h2>Get Started Today<\/h2>\n<p>First thing&#8217;s first, install <a href=\"https:\/\/aka.ms\/vs2022preview\" rel=\"noopener\" target=\"_blank\">Visual Studio 2022 Preview (17.1 Preview 1)<\/a> and confirm .NET MAUI (preview) is checked under the &#8220;Mobile Development with .NET workload&#8221;. Ready? Open Visual Studio 2022 and create a new project. Search for and select .NET MAUI.<\/p>\n<p>Preview 10 <a href=\"https:\/\/github.com\/dotnet\/maui\/releases\/tag\/6.0.101-preview.10\">release notes are on GitHub<\/a> and we have captured the top changes in a <a href=\"https:\/\/github.com\/dotnet\/maui\/wiki\/Migrating-from-Preview-9-to-10\">migration guide in the wiki<\/a>. For additional information about getting started with .NET MAUI, refer to our <a href=\"https:\/\/docs.microsoft.com\/dotnet\/maui\/get-started\/installation\">documentation<\/a>.<\/p>\n<h2>Feedback Welcome<\/h2>\n<p>Visual Studio 2022 previews are incrementally enabling new features for .NET MAUI. As you encounter any issues with debugging, deploying, and editor-related experiences, please use the Help &gt; Send Feedback menu to report your experiences.<\/p>\n<p>Please let us know about your experiences using .NET MAUI to create new applications by engaging with us on GitHub at <a href=\"https:\/\/github.com\/dotnet\/maui\">dotnet\/maui<\/a>.<\/p>\n<p>For a look at what is coming in future releases, visit our <a href=\"https:\/\/github.com\/dotnet\/maui\/wiki\/roadmap\">product roadmap<\/a>, and for a status of feature completeness visit our <a href=\"https:\/\/github.com\/dotnet\/maui\/wiki\/status\">status wiki<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>.NET MAUI Preview 10 includes a single installation experience with Windows App SDK, and new controls such as CollectionView and IndicatorView.<\/p>\n","protected":false},"author":553,"featured_media":37473,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[685,7233],"tags":[7238],"class_list":["post-37472","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dotnet","category-maui","tag-net-maui"],"acf":[],"blog_post_summary":"<p>.NET MAUI Preview 10 includes a single installation experience with Windows App SDK, and new controls such as CollectionView and IndicatorView.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/37472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/553"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=37472"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/37472\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/37473"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=37472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=37472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=37472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}