{"id":45311,"date":"2019-09-11T14:03:15","date_gmt":"2019-09-11T21:03:15","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/xamarin\/?p=45311"},"modified":"2019-09-12T05:51:18","modified_gmt":"2019-09-12T12:51:18","slug":"carouselview-xamarin-forms-4-3-prerelease","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/xamarin\/carouselview-xamarin-forms-4-3-prerelease\/","title":{"rendered":"Xamarin.Forms 4.3 Prerelease and the CarouselView Challenge"},"content":{"rendered":"<p>Today we&#8217;re announcing the <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/xamarin-forms\/release-notes\/4.3\/4.3.0-pre1\">first prerelease of Xamarin.Forms 4.3<\/a>! The focus of this release is the new CollectionView, a successor to the <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/xamarin-forms\/user-interface\/listview\/index\">current ListView<\/a>. Back in April, we asked you to participate in a <a href=\"https:\/\/devblogs.microsoft.com\/xamarin\/xamarin-forms-4-0-collectionview-challenge\">CollectionView challenge<\/a>. The purpose of the challenge was to gather feedback from you, the community, to make certain that the CollectionView can provide out-of-the-box functionality that meets your biggest needs.<\/p>\n<p>Thanks to that feedback, we highlighted key areas that still needed some work. Such as group headers\/footers and pull-to-refresh functionality. Now you can see the results of that work in this 4.3 prerelease. We welcome you to try these newly added features and continue to <a href=\"https:\/\/github.com\/xamarin\/Xamarin.Forms\/issues\/new\/choose\">provide us with any feedback on GitHub<\/a>.<\/p>\n<h3>Much Ado About CarouselView<\/h3>\n<p><span style=\"font-size: 1rem;\">As part of the CollectionView&#8217;s development, we are also developing the CarouselView. Much of CarouselView&#8217;s implementation is based on CollectionView which can provide unique functionality within your apps. A great example of this is the ability to set &#8220;peek insets,&#8221; which indicate to the user that they can scroll horizontally to the next item by showing a small portion of the items to its sides.\u00a0<\/span><\/p>\n<p><figure id=\"attachment_45324\" aria-labelledby=\"figcaption_attachment_45324\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\" wp-image-45324\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/09\/carouselview-insets.gif\" alt=\"A page with a CarouselView using PeekAreaInsets\" width=\"330\" height=\"560\" \/><figcaption id=\"figcaption_attachment_45324\" class=\"wp-caption-text\">A page with a CarouselView using PeekAreaInsets<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<p>This is easily accomplished in your XAML like this (you can set the PeekAreaInsets value in your C# code, too):<\/p>\n<pre class=\"lang:default decode:true\">&lt;CarouselView PeekAreaInsets=\"50\"&gt;\r\n  &lt;CarouselView.ItemTemplate&gt;\r\n    &lt;DataTemplate&gt;\r\n\u00a0     ...\r\n    &lt;\/DataTemplate&gt;\r\n  &lt;\/CarouselView.ItemTemplate&gt;\r\n&lt;\/CarouselView&gt;<\/pre>\n<p><span style=\"font-size: 1rem;\">These carousels can be also used within other scrollable views for section-like functionality:<\/span><\/p>\n<p><figure id=\"attachment_45315\" aria-labelledby=\"figcaption_attachment_45315\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\" wp-image-45315\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/09\/carouselview-scroll.gif\" alt=\"CarouselView &quot;sections&quot; inside a scrollview.\" width=\"322\" height=\"667\" \/><figcaption id=\"figcaption_attachment_45315\" class=\"wp-caption-text\">CarouselView &#8220;sections&#8221; inside a ScrollView.<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<p>There are numerous ways to use CarouselView, and these are just a couple examples.<\/p>\n<h4>A New Challenge Approaches!<\/h4>\n<p><span style=\"font-size: 1rem;\">Continuing with what we did for CollectionView, we&#8217;re starting a CarouselView Challenge to let you try out CarouselView and provide us with similar feedback. If you participated in the CollectionView Challenge, you&#8217;ll be familiar with how this new challenge will work. And we&#8217;re looking forward to seeing some new participants as well! <\/span>Here&#8217;s how it works:<\/p>\n<ul>\n<li>Visit the <a href=\"https:\/\/github.com\/pauldipietro\/CarouselViewChallenge\">CarouselViewChallenge<\/a> repository on GitHub and fork\/clone it. Running the solution will display a page with information about the CarouselViewChallenge, along with another page for you to edit.<\/li>\n<li>Pick an app of your choice. One that you have built in the past using Xamarin.Forms, or another that you might use on a daily basis. There&#8217;s no right or wrong. The goal is to get you using CarouselView in the context of real-world apps.<\/li>\n<li>Pick some part of that app such as a specific page or view where you can use the CarouselView, and try to replicate that functionality. If you need to, you can replace any data with placeholders. The most important thing is testing functionality.<\/li>\n<li>When you&#8217;re finished, open a pull request on the CarouselViewChallenge with your work (screenshots) and comments related to the following:\n<ul>\n<li><strong>What went well?<\/strong>\nWas the CarouselView easy to use? Were you able to accomplish what you set out to?<\/li>\n<li><strong>What <em>didn&#8217;t<\/em> go well?<\/strong>\nBe as honest and detailed as possible.<\/li>\n<li><strong>Missing or desired things?<\/strong>\nLet us know about any functionality you didn&#8217;t have access to and its impact on you.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Everyone who participates can apply for some swag as thanks. A few entries will be chosen <strong>at random<\/strong> for T-shirts. We look forward to seeing your submissions!<\/p>\n<p>The deadline for this challenge is <strong>September 25th<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-45147\" src=\"http:\/\/devblogs.microsoft.com\/xamarin\/wp-content\/uploads\/sites\/44\/2019\/08\/XamSwag.png\" alt=\"Swag Image for CarouselView Challenge\" width=\"225\" height=\"300\" \/><\/p>\n<h4>Try the Prerelease and CarouselView Today<\/h4>\n<p>In order to access the Xamarin.Forms 4.3 <a href=\"https:\/\/www.nuget.org\/packages\/Xamarin.Forms\/4.3.0.778476-pre1\">prerelease<\/a>, you will have to check the &#8220;Include prerelease&#8221; option in the NuGet Package Manager. Please report any issues you encounter on <a href=\"https:\/\/github.com\/xamarin\/Xamarin.Forms\/issues\/new\/choose\">GitHub<\/a>. You can also follow the <a href=\"https:\/\/github.com\/xamarin\/Xamarin.Forms\/issues\/4996\">CarouselView<\/a> Issue there.<\/p>\n<p>For more information refer our <a href=\"https:\/\/docs.microsoft.com\/en-us\/xamarin\/xamarin-forms\/user-interface\/carouselview\/index\">documentation<\/a>. Please note that these are still under development. In many cases, you may be referred to Docs for CollectionView; in these cases, the information provided is applicable due to CarouselView being based upon CollectionView.<\/p>\n<p>Finally, additional thanks to our own Javier Su\u00e1rez for contributing the <a href=\"https:\/\/github.com\/jsuarezruiz\/TravellingApp\">sample<\/a> in the first screenshot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we\u2019re announcing the first prerelease of Xamarin.Forms 4.3 which includes CarouselView\u2019s implementation, based on CollectionView, and can provide unique functionality within your apps. Plus &#8211; a new Xamarin challenge!<\/p>\n","protected":false},"author":738,"featured_media":45324,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[5216,2,367],"tags":[6909,750,6910,6690,16],"class_list":["post-45311","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcements","category-developers","category-xamarin-forms","tag-4-3","tag-carouselview","tag-swag","tag-xamarin-challenge","tag-xamarin-forms"],"acf":[],"blog_post_summary":"<p>Today we\u2019re announcing the first prerelease of Xamarin.Forms 4.3 which includes CarouselView\u2019s implementation, based on CollectionView, and can provide unique functionality within your apps. Plus &#8211; a new Xamarin challenge!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/45311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/users\/738"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/comments?post=45311"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/posts\/45311\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media\/45324"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/media?parent=45311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/categories?post=45311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/xamarin\/wp-json\/wp\/v2\/tags?post=45311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}